public static @Nullable PsiElement getNodeElement(@Nullable AbstractTreeNode<?> node) {
    Object value = getNodeValue(node);
    return value instanceof PsiElement ? (PsiElement)value : null;
  }
public static @Nullable PsiElement getNodeElement(@Nullable AbstractTreeNode<?> node)