code: protected ParserType getType(final String variableString) {
          final String uppercaseVarSet = variableString.trim().toUpperCase(Locale.ENGLISH);
          if (uppercaseVarSet.matches(ProcessorConstants.RELATED_REGEX)) {
              return ParserType.REFER_TO;
          } else if (uppercaseVarSet.matches(ProcessorConstants.PREREQUISITE_REGEX)) {
              return ParserType.PREREQUISITE;
          } else if (uppercaseVarSet.matches(ProcessorConstants.NEXT_REGEX)) {
              return ParserType.NEXT;
          } else if (uppercaseVarSet.matches(ProcessorConstants.PREV_REGEX)) {
              return ParserType.PREVIOUS;
          } else if (uppercaseVarSet.matches(ProcessorConstants.TARGET_REGEX)) {
              return ParserType.TARGET;
          } else if (uppercaseVarSet.matches(ProcessorConstants.EXTERNAL_TARGET_REGEX)) {
              return ParserType.EXTERNAL_TARGET;
          } else if (uppercaseVarSet.matches(ProcessorConstants.EXTERNAL_CSP_REGEX)) {
              return ParserType.EXTERNAL_CONTENT_SPEC;
          } else if (uppercaseVarSet.matches(ProcessorConstants.LINK_LIST_REGEX)) {
              return ParserType.LINKLIST;
          } else if (uppercaseVarSet.matches(ProcessorConstants.INFO_REGEX)) {
              return ParserType.INFO;
          } else {
              return ParserType.NONE;
          }
      }
docs: Processes a string of variables to find the type that exists within the string.
  
  @param variableString The variable string to be processed.
  @return The parser type that was found in the string otherwise a NONE type is returned.