private static void addValid(@NotNull List<? super Configurable> list, Configurable configurable, Project project,
                               boolean checkNonDefaultProject) {
    if (isValid(configurable, project, checkNonDefaultProject)) {
      list.add(configurable);
    }
  }
private static void addValid(@NotNull List<? super Configurable> list, Configurable configurable, Project project,
                               boolean checkNonDefaultProject)