private static boolean isNonCodeLeaf(PsiElement leaf) {
    return StringUtil.isEmptyOrSpaces(leaf.getText()) || getNonStrictParentOfType(leaf, PsiComment.class) != null;
  }
private static boolean isNonCodeLeaf(PsiElement leaf)