public static @NotNull <T extends PsiElement> T treeToPsiNotNull(@NotNull ASTNode element) {
    PsiElement psi = element.getPsi();
    assert psi != null : element;
    //noinspection unchecked
    return (T)psi;
  }
public static @NotNull <T extends PsiElement> T treeToPsiNotNull(@NotNull ASTNode element)