String (@Nullable Project project, @NotNull String propertyName) { String spec = project == null || project.isDisposed() ? null : PropertiesComponent.getInstance(project).getValue(propertyName); if (spec == null) { spec = PropertiesComponent.getInstance().getValue(propertyName); } return spec == null ? System.getProperty(propertyName, "") : spec; }