void (@NotNull PsiMethodReferenceExpression expression) { if (PsiTypes.voidType().equals(LambdaUtil.getFunctionalInterfaceReturnType(expression))) { PsiElement resolve = expression.resolve(); if (resolve instanceof PsiMethod) { visitCalledExpression(expression, (PsiMethod)resolve, null); } } }