I have an Android Gradle project and I want to create two flavor branches. I'm use the default sourceSets with this structure:
src - main - java - package - res - manifest.xml - flavor1 - java - package - flavor2 - java - package "main/java", "flavor1/java" is rendered/annotated as Java source in the IDE (i.e., "java" is in blue, and the directories are shown as packages), but "flavor2" is not rendered the same way.
I tried to clear the caches and restart Android Studio but this did not help. How can I fix this?

