class TypeHierarchy {

    public boolean isA(String type, String supertype) {
        Set<String> supertypes = getSupertypes(type);
        return type.equals(supertype) ||
                supertypes.contains(supertype);
    }

    protected  TypeHierarchy();

}