public static boolean isInComments(IElementType tokenType) {
    Language language = tokenType.getLanguage();

    for (CommentTokenSetProvider provider : CommentTokenSetProvider.EXTENSION.allForLanguage(language)) {
      if (provider.isInComments(tokenType)) {
        return true;
      }
    }

    boolean inComments = false;
    ParserDefinition parserDefinition = LanguageParserDefinitions.INSTANCE.forLanguage(language);

    if (parserDefinition != null) {
      TokenSet commentTokens = parserDefinition.getCommentTokens();

      if (commentTokens.contains(tokenType)) {
        inComments = true;
      }
    }
    return inComments;
  }
public static boolean isInComments(IElementType tokenType)