boolean (@NotNull PsiAnnotation psiAnnotation, @NotNull PsiMethod psiMethod, @NotNull ProblemSink problemSink) { boolean result = true; if (psiMethod.hasParameters()) { problemSink.addErrorMessage("inspection.message.delegate.legal.only.on.no.argument.methods"); result = false; } final PsiType returnType = psiMethod.getReturnType(); result &= null != returnType && DelegateHandler.validate(psiMethod, returnType, psiAnnotation, problemSink); return result; }