void (@NotNull PsiMethodReferenceExpression expression) { if (queried) return; super.visitMethodReferenceExpression(expression); final String name = expression.getReferenceName(); if (name == null) return; if (!queryNames.get(builderType).contains(name) && !returnSelfNames.get(builderType).contains(name)) return; if (PsiTypes.voidType().equals(LambdaUtil.getFunctionalInterfaceReturnType(expression))) return; final PsiExpression qualifierExpression = expression.getQualifierExpression(); if (hasReferenceToVariable(variable, qualifierExpression, builderType)) { queried = true; } }