static void invokeStorageMethod()

in src/main/java/com/intellij/rt/debugger/agent/CaptureAgent.java [308:327]


  static void invokeStorageMethod(MethodVisitor mv, String name) {
    List<Method> applicable = new ArrayList<>();
    for (Method m : CaptureStorage.class.getMethods()) {
      if (name.equals(m.getName())) {
        applicable.add(m);
      }
    }
    if (applicable.isEmpty()) {
      throw new IllegalStateException("Unable to find Storage method " + name);
    }
    if (applicable.size() > 1) {
      throw new IllegalStateException("More than one Storage method with the name " + name);
    }
    Method method = applicable.get(0);
    mv.visitMethodInsn(Opcodes.INVOKESTATIC,
            getInternalClsName(CaptureStorage.class),
            name,
            Type.getMethodDescriptor(method),
            false);
  }