Have you tried closing the project, deleting .idea directory and test.iml file and then using File->New->Project from Existing Sources... (or Import project... on project selection screen if you do not have any project opened)?
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?