public static boolean isStatement(@NotNull PsiElement element) {
    return ";".equals(element.getText()) || element instanceof PsiComment || StringUtil.isEmptyOrSpaces(element.getText()) || PsiUtil.isExpressionStatement(element);
  }
public static boolean isStatement(@NotNull PsiElement element)