class CheckSpec implements JsonObjectConvertible {

    public final boolean inherits(final @NotNull CheckSpec that) {
        return this.mustInherit() && !that.mustInherit()
                && !this.getTemplate().equals(this.getName())
                && that.notUnnamed()
                && (that.getName().equals(this.getTemplate())
                || that.getName().endsWith("/" + this.getTemplate()));
    }

}