/** * Returns {@code true} if an binding is deemed to be required. Returns false when a field is * annotated with any annotation named {@code Optional} or {@code Nullable}. */ private boolean isRequiredInjection(Element element) { return !compilerUtil.hasAnnotationWithName(element, "Nullable"); } }