List<GradleResourceRootDescriptor> (@NotNull JpsModel model, @NotNull ModuleExcludeIndex index, @NotNull IgnoredFileIndex ignoredFileIndex, @NotNull BuildDataPaths dataPaths) { final List<GradleResourceRootDescriptor> result = new ArrayList<>(); GradleProjectConfiguration projectConfig = JpsGradleExtensionService.getInstance().getGradleProjectConfiguration(dataPaths); GradleModuleResourceConfiguration moduleConfig = projectConfig.moduleConfigurations.get(myModule.getName()); if (moduleConfig == null) return Collections.emptyList(); int i = 0; for (ResourceRootConfiguration resource : getRootConfigurations(moduleConfig)) { result.add(new GradleResourceRootDescriptor(this, resource, i++, moduleConfig.overwrite)); } return result; }