void (@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); } }