class CheckSpec implements JsonObjectConvertible {

    public final CheckSpec inherit(final @NotNull CheckSpec that) {
        final CheckSpec composite = baseCompositeOver(that);
        composite.setName(ofNullable(this.getName()).orElse(that.getName()));
        composite.setSkip(this.isSkip());
        return composite;
    }

}