File (@NotNull ExternalProject externalProject, @NotNull String sourceSetName, @NotNull ExternalSystemSourceType sourceType) { ExternalSourceSet sourceSet = externalProject.getSourceSets().get(sourceSetName); if (sourceSet == null) return null; return getGradleOutputDir(sourceSet.getSources().get(sourceType)); }