void ( @NotNull LongRunningOperation operation, @NotNull GradleExecutionSettings settings ) { final String javaHome = settings.getJavaHome(); if (javaHome != null && new File(javaHome).isDirectory()) { LOG.debug("Java home to set for Gradle operation: " + javaHome); operation.setJavaHome(new File(javaHome)); } }