FrameworkSupportInModuleConfigurable (@NotNull FrameworkSupportModel model) { return new FrameworkSupportInModuleConfigurable() { @Nullable @Override public JComponent createComponent() { return GradleFrameworkSupportProvider.this.createComponent(); } @Override public void addSupport(@NotNull Module module, @NotNull ModifiableRootModel rootModel, @NotNull ModifiableModelsProvider modifiableModelsProvider) { final BuildScriptDataBuilder buildScriptData = getBuildScriptData(module); if (buildScriptData != null) { ModuleBuilder builder = model.getModuleBuilder(); ProjectId projectId = builder instanceof AbstractGradleModuleBuilder ? ((AbstractGradleModuleBuilder)builder).getProjectId() : new ProjectId(null, module.getName(), null); GradleFrameworkSupportProvider.this.addSupport(projectId, module, rootModel, modifiableModelsProvider, buildScriptData); } } }; }