void (@NotNull IdeaModule gradleModule, @NotNull DataNode<ModuleData> ideModule) { CppProjectImpl cppProject = appendCppProject(gradleModule, ideModule); if (cppProject != null) { CppComponent mainComponent = cppProject.getMainComponent(); Set<File> sourceFolders = mainComponent == null ? new HashSet<>() : getSourceFolders(mainComponent); CppTestSuite testComponent = cppProject.getTestComponent(); Set<File> testSourceFolders = testComponent == null ? new HashSet<>() : getSourceFolders(testComponent); testSourceFolders.removeAll(sourceFolders); for (File folder : sourceFolders) { ContentRootData ideContentRoot = new ContentRootData(GradleConstants.SYSTEM_ID, folder.getAbsolutePath()); ideContentRoot.storePath(ExternalSystemSourceType.SOURCE, folder.getAbsolutePath()); ideModule.createChild(ProjectKeys.CONTENT_ROOT, ideContentRoot); } for (File folder : testSourceFolders) { ContentRootData ideContentRoot = new ContentRootData(GradleConstants.SYSTEM_ID, folder.getAbsolutePath()); ideContentRoot.storePath(ExternalSystemSourceType.TEST, folder.getAbsolutePath()); ideModule.createChild(ProjectKeys.CONTENT_ROOT, ideContentRoot); } } nextResolver.populateModuleContentRoots(gradleModule, ideModule); }