private static boolean isEndOfLineComment(PsiElement element) {
    if (!(element instanceof PsiComment comment)) {
      return false;
    }
    final IElementType tokenType = comment.getTokenType();
    return GroovyTokenTypes.mSL_COMMENT.equals(tokenType);
  }
private static boolean isEndOfLineComment(PsiElement element)