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