@Test void findInDirectIcon() { assertFalse(finder.findDirectIcon(Indirect.class).isPresent()); assertEquals("yes", finder.findIndirectIcon(Indirect.class).get()); }
public Optional<String> findIndirectIcon(final AnnotatedElement type) { return ofNullable(findMetaIconAnnotation(type) .map(this::getMetaIcon) .orElseGet(() -> findImplicitIcon(type).orElse(null))); }
IconFinder { public Optional<String> findIndirectIcon(final AnnotatedElement type) { return ofNullable(findMetaIconAnnotation(type) .map(this::getMetaIcon) .orElseGet(() -> findImplicitIcon(type).orElse(null))); } }
IconFinder { public Optional<String> findIndirectIcon(final AnnotatedElement type) { return ofNullable(findMetaIconAnnotation(type) .map(this::getMetaIcon) .orElseGet(() -> findImplicitIcon(type).orElse(null))); }  }
IconFinder { public Optional<String> findIndirectIcon(final AnnotatedElement type) { return ofNullable(findMetaIconAnnotation(type) .map(this::getMetaIcon) .orElseGet(() -> findImplicitIcon(type).orElse(null))); }  String findIcon(final AnnotatedElement type); Optional<String> findIndirectIcon(final AnnotatedElement type); Optional<String> findDirectIcon(final AnnotatedElement type); boolean isCustom(final Annotation icon); Annotation extractIcon(final AnnotatedElement annotatedElement); }
IconFinder { public Optional<String> findIndirectIcon(final AnnotatedElement type) { return ofNullable(findMetaIconAnnotation(type) .map(this::getMetaIcon) .orElseGet(() -> findImplicitIcon(type).orElse(null))); }  String findIcon(final AnnotatedElement type); Optional<String> findIndirectIcon(final AnnotatedElement type); Optional<String> findDirectIcon(final AnnotatedElement type); boolean isCustom(final Annotation icon); Annotation extractIcon(final AnnotatedElement annotatedElement);  }