private static boolean isEmpty(GroovyPsiElement body) {
      if (!(body instanceof GrBlockStatement block)) {
        return false;
      }
      final GrOpenBlock openBlock = block.getBlock();

      final PsiElement brace = openBlock.getLBrace();
      if (brace == null) return false;
      final PsiElement nextNonWhitespace = PsiUtil.skipWhitespaces(brace.getNextSibling(), true);
      return nextNonWhitespace == openBlock.getRBrace();
    }
private static boolean isEmpty(GroovyPsiElement body)