boolean (PsiElement element) { if (!(element instanceof PsiMethod)) return false; PsiMethod method = (PsiMethod)element; final PsiType type = method.getReturnType(); if (type == null) return false; return !PsiTypes.voidType().equals(type); }