public static @Nullable PsiElement getDeepestVisibleLast(@NotNull PsiElement psiElement) {
    PsiElement last = getDeepestLast(psiElement);
    if (StringUtil.isEmptyOrSpaces(last.getText())) {
      last = prevVisibleLeaf(last);
    }
    return last;
  }
public static @Nullable PsiElement getDeepestVisibleLast(@NotNull PsiElement psiElement)