import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
+import java.util.NoSuchElementException;
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
* {@code java.lang.NullPointerException} as a JavaTypeName.
*/
static final @NonNull JavaTypeName NPE = JavaTypeName.create(NullPointerException.class);
+ /**
+ * {@code java.lang.NoSuchElementException} as a JavaTypeName.
+ */
+ static final @NonNull JavaTypeName NSEE = JavaTypeName.create(NoSuchElementException.class);
/**
* {@code java.lang.Override} as a JavaTypeName.
*/
prefix = BindingMapping.GETTER_PREFIX;
} else if (BindingMapping.isNonnullMethodName(getterName)) {
prefix = BindingMapping.NONNULL_PREFIX;
+ } else if (BindingMapping.isRequireMethodName(getterName)) {
+ prefix = BindingMapping.REQUIRE_PREFIX;
} else {
throw new IllegalArgumentException(getterName + " is not a getter");
}