@Override
            public void visitMethod(@NotNull GrMethod method) {
              GrOpenBlock block = method.getBlock();
              if (block != null) {
                GroovyControlFlow flow = ControlFlowUtils.getGroovyControlFlow(block);
                collectRefs(variable, flow.getFlow(), ControlFlowUtils.inferWriteAccessMap(flow, variable), -1, toInline);
              }
            }
@Override
            public void visitMethod(@NotNull GrMethod method)