Sorry for the late reply.
After doing that, my project lost all kotlin and java related functions.
The module no longer has java and kotlin dependencies.
I tried to make a new module and it created new src folder.
Are there any way to change the existing module settings?