code: public static List<String> explicitlyDisabledProfiles(String... profiles) {
          if (profiles.length == 0) {
              return Collections.<String> emptyList();
          }
          List<String> disabled = new ArrayList<String>();
          for (String profileId : profiles) {
              if (profileId != null && (profileId.startsWith("-") || profileId.startsWith("!"))) {
                  String disabledId = profileId.substring(1);
                  Validate.notNullOrEmpty(disabledId, "Invalid name (\"" + profileId + "\") of a profile do be disabled");
                  disabled.add(disabledId);
              }
          }
  
          return disabled;
      }
docs: selects all profiles ids to be disabled