@Override
    public void visitInvokeDynamicInsn(String name, String desc, Handle bootstrapMethod, Object... bootstrapMethodArgs) {
        addImportWithTypeDesc(desc);
        for (Object arg : bootstrapMethodArgs) {
            if (arg instanceof Type) {
                addImport((Type) arg);
            } else if (arg instanceof Handle) {
                addImportWithInternalName(((Handle) arg).getOwner());
                List.of(Type.getArgumentTypes(desc)).forEach(this::addImport);
            } else if ( ! (arg instanceof Number) && ! (arg instanceof String)) {
                throw new AssertionError("Unexpected type " + arg.getClass() + " with value '" + arg + "'");
            }
        }
    }
Picks up classes used in method bodies.

@author Tony Vaagenes
@author ollivir
bundle-plugin/src/main/java/com/yahoo/container/plugin/classanalysis/AnalyzeMethodVisitor.java