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