void (@Nullable String newPath) { String myServiceDirectoryPath = GradleLocalSettings.getInstance(getProject()).getGradleUserHome(); if (!Objects.equals(myServiceDirectoryPath, newPath)) { GradleLocalSettings.getInstance(getProject()).setGradleUserHome(newPath); getPublisher().onServiceDirectoryPathChange(myServiceDirectoryPath, newPath); } }