private static boolean shouldMethodHaveBody(@Nullable PsiElement method){
    return AfterSemicolonEnterProcessor.shouldHaveBody(
      BasicJavaAstTreeUtil.toNode(method));
  }
private static boolean shouldMethodHaveBody(@Nullable PsiElement method)