void (final @NotNull PsiMethodReferenceExpression expression) { Problem problem = doCheckMethodCallOnFunctionalExpression(expression, call -> expression.resolve() != null); if (problem != null) { problem.register(holder); } }