void (@NotNull IdeaModule gradleModule, @NotNull DataNode<ModuleData> ideModule) { final BuildScriptClasspathModel buildScriptClasspathModel = resolverCtx.getExtraProject(gradleModule, BuildScriptClasspathModel.class); final List<BuildScriptClasspathData.ClasspathEntry> classpathEntries; if (buildScriptClasspathModel != null) { classpathEntries = ContainerUtil.map( buildScriptClasspathModel.getClasspath(), (Function<ClasspathEntryModel, BuildScriptClasspathData.ClasspathEntry>)model -> BuildScriptClasspathData.ClasspathEntry .create(model.getClasses(), model.getSources(), model.getJavadoc())); } else { classpathEntries = ContainerUtil.emptyList(); } BuildScriptClasspathData buildScriptClasspathData = new BuildScriptClasspathData(GradleConstants.SYSTEM_ID, classpathEntries); buildScriptClasspathData.setGradleHomeDir(buildScriptClasspathModel != null ? buildScriptClasspathModel.getGradleHomeDir() : null); ideModule.createChild(BuildScriptClasspathData.KEY, buildScriptClasspathData); }