public static boolean isMethodWithVoidReturnType(@NotNull PsiElement element) {
    return element instanceof PsiMethod && PsiTypes.voidType().equals(((PsiMethod)element).getReturnType());
  }
public static boolean isMethodWithVoidReturnType(@NotNull PsiElement element)