private static boolean isCommentNode(@Nullable ASTNode node) {
    return node != null &&
           YAMLTokenTypes.COMMENT == PsiUtilCore.getElementType(node.getElementType() == YAMLTokenTypes.EOL ? node.getTreePrev() : node);
  }
private static boolean isCommentNode(@Nullable ASTNode node)