Performance hit in getModulesWithKotlinFiles(Project) after git update (KT-4809)

- Wait for indices are ready
- Try to do only one final check
- Better method to check Kotlin files are present in modules

 #KT-4809 Fixed
 #KT-4875 Fixed
Refactoring: rename method and optimize cycles in methods