class CheckSpec implements JsonObjectConvertible {

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

}