code: private static int indexOfAnyRulePrefix(String ruleText) {
          int result = -1;
          if (ruleText.length() > 0) {
              int pos;
              for (String string : RULE_PREFIXES) {
                  pos = ruleText.indexOf(string);
                  if (pos != -1 && (result == -1 || pos < result)) {
                      result = pos;
                  }
              }
          }
          return result;
      }
docs: Searches the rule's rule text for any of the specified strings.
  @return The index of the first match in the rule's rule text
  (i.e., the first substring in the rule's rule text that matches
  _any_ of the strings in "strings").  If none of the strings in
  "strings" is found in the rule's rule text, returns -1.