void (@NotNull PsiMethod method) { if (!reportMethodReturns) return; if (method.isConstructor()) return; final PsiTypeElement typeElement = method.getReturnTypeElement(); if (!typeIsConcreteClass(typeElement)) return; registerError(typeElement, InspectionGadgetsBundle.message("method.return.concrete.class.problem.descriptor")); }