boolean (@NotNull PsiVariable variable, @Nullable PsiElement context, boolean builderPattern) { if (context == null || variable.isUnnamed()) { return false; } final VariableReturnedVisitor visitor = new VariableReturnedVisitor(variable, builderPattern); context.accept(visitor); return visitor.isReturned(); }