refactoring, example of not generating @NotNull