public static @Nullable PsiElement nextVisibleLeaf(@NotNull PsiElement element) {
    PsiElement nextLeaf = nextLeaf(element, true);
    while (nextLeaf != null && StringUtil.isEmptyOrSpaces(nextLeaf.getText())) nextLeaf = nextLeaf(nextLeaf, true);
    return nextLeaf;
  }
public static @Nullable PsiElement nextVisibleLeaf(@NotNull PsiElement element)