docs: public static @CheckForNull
      ObjectType[] findDeclaredExceptions(InvokeInstruction inv, ConstantPoolGen cpg)  {
          XMethod method = findInvocationLeastUpperBound(inv, cpg, inv instanceof INVOKESTATIC ? STATIC_METHOD : INSTANCE_METHOD);
  
          if (method == null) {
              return null;
          }
          String[] exceptions = method.getThrownExceptions();
  
          if (exceptions == null) {
              return new ObjectType[0];
          }
  
          ObjectType[] result = new ObjectType[exceptions.length];
          for (int i = 0; i < exceptions.length; ++i) {
              result[i] = ObjectTypeFactory.getInstance(ClassName.toDottedClassName(exceptions[i]));
          }
          return result;
      }