public static boolean isEmptyExpression(@Nullable UExpression expression) {
    if (expression == null) return true;
    return expression instanceof UBlockExpression blockExpression && blockExpression.getExpressions().isEmpty();
  }
public static boolean isEmptyExpression(@Nullable UExpression expression)