private static void setLastOpenedPath(@Nullable Project project, String path) {
    if (project == null) {
      PropertiesComponent.getInstance().setValue(LAST_OPENED_FILE, path);
    }
    else if (!project.isDisposed()) {
      PropertiesComponent.getInstance(project).setValue(LAST_OPENED_FILE, path);
    }
  }
private static void setLastOpenedPath(@Nullable Project project, String path)