code: @SuppressWarnings("squid:S1698")
      public boolean matches(TokenType type, String trigger) {
          if (!is(type)) {
              return false;
          }
          if (trigger == null) {
              throw new IllegalArgumentException("trigger must not be null");
          }
  
          return getTrigger() == trigger.intern();
      }
docs: Determines if this token has the given type and trigger.
  
  @param type    the expected type
  @param trigger the expected trigger
  @return <tt>true</tt> if this token matches the given type and trigger, <tt>false</tt> otherwise