void (@NotNull PsiLocalVariable variable) { if (!reportLocalVariables) return; final PsiTypeElement typeElement = variable.getTypeElement(); if (!typeIsConcreteClass(typeElement)) return; PsiMethod method = PsiTreeUtil.getParentOfType(typeElement, PsiMethod.class, true, PsiClass.class, PsiLambdaExpression.class); if (MethodUtils.isEquals(method)) return; registerError(typeElement, InspectionGadgetsBundle.message( "local.variable.of.concrete.class.problem.descriptor", variable.getName())); }