void (@NotNull final IdeaModule gradleModule, @Nullable final File libFile, @NotNull final LibraryData library, @NotNull final ProjectResolverContext resolverCtx) { if (libFile == null || !libFile.getName().startsWith("gradle-")) return; final BuildScriptClasspathModel buildScriptClasspathModel = resolverCtx.getExtraProject(gradleModule, BuildScriptClasspathModel.class); if (buildScriptClasspathModel == null) return; final File gradleHomeDir = buildScriptClasspathModel.getGradleHomeDir(); if (gradleHomeDir == null) return; final GradleVersion gradleVersion = GradleVersion.version(buildScriptClasspathModel.getGradleVersion()); attachGradleSdkSources(libFile, library, gradleHomeDir, gradleVersion); }