What I mean is, couldn't you add the @NotNull and @NotNullProperty constraints to the shared interface? But reading your comment again, I assume you need to change the value of that second constraint's attributes from processor to processor?