@Override
    @PublicAPI(usage = ACCESS)
    public boolean isAnnotatedWith(Class<? extends Annotation> annotationType) {
        return packageInfo.map(it -> it.isAnnotatedWith(annotationType)).orElse(false);
    }
@Test
    public void test_isAnnotatedWith_predicate() {
        JavaPackage annotatedPackage = importPackage("packageexamples.annotated");
        JavaPackage nonAnnotatedPackage = importPackage("packageexamples");

        assertThat(annotatedPackage.isAnnotatedWith(alwaysTrue())).isTrue();
        assertThat(annotatedPackage.isAnnotatedWith(alwaysFalse())).isFalse();

        assertThat(nonAnnotatedPackage.isAnnotatedWith(alwaysTrue())).isFalse();
        assertThat(nonAnnotatedPackage.isAnnotatedWith(alwaysFalse())).isFalse();
    }