JpsJavaDependenciesEnumerationHandler (@NotNull Collection<JpsModule> modules) { JpsGradleExtensionService service = JpsGradleExtensionService.getInstance(); JpsJavaDependenciesEnumerationHandler handler = null; for (JpsModule module : modules) { JpsGradleModuleExtension gradleModuleExtension = service.getExtension(module); if (gradleModuleExtension != null) { if (JpsGradleModuleExtension.GRADLE_SOURCE_SET_MODULE_TYPE_KEY.equals(gradleModuleExtension.getModuleType())) { handler = SOURCE_SET_TYPE_INSTANCE; break; } else { handler = NON_SOURCE_SET_TYPE_INSTANCE; } } } return handler; }