@PublicAPI(usage = ACCESS)
    public Set<Dependency> getDirectDependenciesToSelf() {
        return reverseDependencies.getDirectDependenciesTo(this);
    }
@Test
    public void direct_dependencies_to_self_by_annotation() {
        JavaClasses javaClasses = importPackagesOf(getClass());

        assertThat(javaClasses.get(OnClass.class).getDirectDependenciesToSelf())
                .areAtLeastOne(annotationTypeDependency()
                        .from(ClassWithAnnotationDependencies.class)
                        .to(OnClass.class)
                        .inLineNumber(0));

        assertThat(javaClasses.get(OnField.class).getDirectDependenciesToSelf())
                .areAtLeastOne(annotationTypeDependency()
                        .from(ClassWithAnnotationDependencies.class)
                        .to(OnField.class)
                        .inLineNumber(0));

        assertThat(javaClasses.get(OnMethod.class).getDirectDependenciesToSelf())
                .areAtLeastOne(annotationTypeDependency()
                        .from(ClassWithAnnotationDependencies.class)
                        .to(OnMethod.class)
                        .inLineNumber(0));

        assertThat(javaClasses.get(OnMethodParam.class).getDirectDependenciesToSelf())
                .areAtLeastOne(annotationTypeDependency()
                        .from(ClassWithAnnotationDependencies.class)
                        .to(OnMethodParam.class)
                        .inLineNumber(0));

        assertThat(javaClasses.get(OnConstructor.class).getDirectDependenciesToSelf())
                .areAtLeastOne(annotationTypeDependency()
                        .from(ClassWithAnnotationDependencies.class)
                        .to(OnConstructor.class)
                        .inLineNumber(0));

        assertThat(javaClasses.get(WithType.class).getDirectDependenciesToSelf())
                .areAtLeastOne(annotationMemberOfTypeDependency()
                        .from(ClassWithAnnotationDependencies.class)
                        .to(WithType.class)
                        .inLineNumber(0));

        assertThat(javaClasses.get(B.class).getDirectDependenciesToSelf())
                .areAtLeastOne(annotationMemberOfTypeDependency()
                        .from(ClassWithAnnotationDependencies.class)
                        .to(B.class)
                        .inLineNumber(0));
    }