code: public boolean isSpecialIdentifierWithContent(String trigger, String... contents) {
          if (!matches(TokenType.SPECIAL_ID, trigger)) {
              return false;
          }
          if (contents.length == 0) {
              return true;
          }
          for (String content : contents) {
              if (content != null && content.equals(getContents())) {
                  return true;
              }
          }
          return false;
      }
docs: Determines if this token is a special identifier with the given trigger.
  <p>
  If a list of <tt>contents</tt> is given, this method checks that the content matches one of them.
  
  @param trigger  the trigger of the special id
  @param contents the content to check for. If the list es empty, only the token type and the trigger is checked.
  @return <tt>true</tt> if this token is a special identifier with the given trigger.
  If <tt>contents</tt> is not empty, the content must also match one of the elements.