A (@NotNull PsiMethodReferenceType methodReferenceType) { final PsiMethodReferenceExpression expression = methodReferenceType.getExpression(); final PsiType interfaceType = expression.getFunctionalInterfaceType(); if (interfaceType != null && LambdaUtil.isFunctionalType(interfaceType)) return interfaceType.accept(this); return visitType(methodReferenceType); }