void (@NotNull MyState state) { super.loadState(state); // --- to be removed with the removal of GradleSystemSettings#getServiceDirectoryPath method --- //noinspection deprecation String serviceDirectoryPath = GradleSystemSettings.getInstance().getServiceDirectoryPath(); if (state.myGradleUserHome == null && serviceDirectoryPath != null) { state.myGradleUserHome = serviceDirectoryPath; } // ---- }