void (Boolean skipIndexing) { ExternalSystemApiUtil.subscribe(myProject, GradleConstants.SYSTEM_ID, new ExternalSystemSettingsListener<>() { @Override public void onProjectsLinked(@NotNull Collection settings) { final Object item = ContainerUtil.getFirstItem(settings); if (item instanceof GradleProjectSettings) { ((GradleProjectSettings)item).setGradleJvm(GRADLE_JDK_NAME); } } }); super.importProject(skipIndexing); }