import org.jetbrains.annotations.NotNull; public class ConstructorParamWithMessage { public ConstructorParamWithMessage(@NotNull("ConstructorParam.ConstructorParam.o cant be null") Object o) { } }