Optional<Nullability> (String name) { if (myNotNulls.contains(name)) { return Optional.of(Nullability.NOT_NULL); } if (myNullables.contains(name)) { return Optional.of(Nullability.NULLABLE); } if (myDefaultUnknowns.containsKey(name)) { return Optional.of(Nullability.UNKNOWN); } return Optional.empty(); }