@PublicAPI(usage = ACCESS)
    public JavaClasses importClasses(Class<?>... classes) {
        return importClasses(Arrays.asList(classes));
    }
@Test
    public void imports_enclosing_method_of_anonymous_class() throws ClassNotFoundException {
        @SuppressWarnings("unused")
        class ClassCreatingAnonymousClassInMethod {
            void someMethod() {
                new Serializable() {
                };
            }
        }
        String anonymousClassName = ClassCreatingAnonymousClassInMethod.class.getName() + "$1";
        JavaClasses classes = new ClassFileImporter().importClasses(
                ClassCreatingAnonymousClassInMethod.class, Class.forName(anonymousClassName)
        );
        JavaClass enclosingClass = classes.get(ClassCreatingAnonymousClassInMethod.class);
        JavaClass anonymousClass = classes.get(anonymousClassName);

        assertThat(anonymousClass.getEnclosingCodeUnit()).contains(enclosingClass.getMethod("someMethod"));
        assertThat(anonymousClass.getEnclosingClass()).contains(enclosingClass);
    }