How can I configure IntelliJ IDEA to give me warnings when the @NotNull / @Nullable contract is violated in Lombok's generated constructors?
I enabled the Settings* > Editor > Inspections > Java > Probable bugs > @NotNull/@Nullable problems inspection, and set the NotNull annotation to lombok.NonNull in the Settings > Editor > Inspections > Java > Probable bugs > @NotNull/@Nullable problems > Configure annotations setting.
IntelliJ IDEA:
- gives warnings when null contract for Lombok getters and setters are violated
- also gives warnings when null contract for
RegularDataClass
constructor is violated - but it doesn't give warnings when null contract for lombok constructors are violated...