void (final @NotNull PsiReturnStatement statement) { final PsiExpression returnValue = statement.getReturnValue(); PsiMethod containingMethod = PsiTreeUtil.getParentOfType(returnValue, PsiMethod.class, true, PsiLambdaExpression.class); if (returnValue instanceof PsiReferenceExpression && containingMethod != null) { final String refName = ((PsiReferenceExpression)returnValue).getReferenceName(); checkCombination(returnValue, containingMethod.getName(), refName, "suspicious.name.return"); } }