private static void populateCompileOutputSettings( @Nullable IdeaCompilerOutput gradleSettings, @NotNull GradleModule intellijModule) { if (gradleSettings == null) { return; } File sourceCompileOutputPath = gradleSettings.getOutputDir(); if (sourceCompileOutputPath != null) { intellijModule.setCompileOutputPath( SourceType.SOURCE, sourceCompileOutputPath.getAbsolutePath()); } File testCompileOutputPath = gradleSettings.getTestOutputDir(); if (testCompileOutputPath != null) { intellijModule.setCompileOutputPath(SourceType.TEST, testCompileOutputPath.getAbsolutePath()); } intellijModule.setInheritProjectCompileOutputPath( gradleSettings.getInheritOutputDirs() || sourceCompileOutputPath == null || testCompileOutputPath == null); }