private void callVisit(DecodedInstruction[] all, DecodedInstruction one) {
    Visitor visitor = null;

    switch (OpcodeInfo.getIndexType(one.getOpcode())) {
      case STRING_REF:
        visitor = stringVisitor;
        break;
      case TYPE_REF:
        visitor = typeVisitor;
        break;
      case FIELD_REF:
        visitor = fieldVisitor;
        break;
      case METHOD_REF:
        visitor = methodVisitor;
        break;
      case METHOD_AND_PROTO_REF:
        visitor = methodAndProtoVisitor;
        break;
      case CALL_SITE_REF:
        visitor = callSiteVisitor;
        break;
    }

    if (visitor == null) {
      visitor = fallbackVisitor;
    }

    if (visitor != null) {
      visitor.visit(all, one);
    }
  }
Sets {@code visitor} as the visitor for all call site instructions.
android/android_framework/dex-maker/src/main/java/com/android/dx/io/CodeReader.java