private static boolean isValid(Configurable configurable, Project project, boolean checkNonDefault) {
    if (configurable == null) {
      return false;
    }
    return project == null || !checkNonDefault || !project.isDefault() || !ConfigurableWrapper.isNonDefaultProject(configurable);
  }
private static boolean isValid(Configurable configurable, Project project, boolean checkNonDefault)