private boolean isBuiltInCheckRequired(UpgradeCheck upgradeCheck, UpgradeType upgradeType) {
    if (upgradeType == null) {
      return true;
    }

    UpgradeCheckInfo annotation = upgradeCheck.getClass().getAnnotation(UpgradeCheckInfo.class);
    if (null == annotation) {
      return false;
    }

    UpgradeType[] upgradeTypes = annotation.required();
    return ArrayUtils.contains(upgradeTypes, upgradeType);
  }
Gets whether a built-in upgrade check is required to run.
ambari-server/src/main/java/org/apache/ambari/server/checks/UpgradeCheckRegistry.java