private static boolean isVoidReturn(PsiElement element) {
    return element instanceof PsiReturnStatement && ((PsiReturnStatement)element).getReturnValue() == null;
  }
private static boolean isVoidReturn(PsiElement element)