GroovyElementVisitor (@NotNull ProblemsHolder holder, boolean isOnTheFly) { return new GroovyElementVisitor() { @Override public void visitReferenceExpression(@NotNull GrReferenceExpression refExpression) { checkForSecondUnsafeCall(refExpression, holder); } }; }