Add an @NotNull validation constraint to ensure not null and remove null checks in implementation.