class SingleParser extends Parser<T> {

    @Override
    protected void check(Set<T> types) {
        if (types.size() > 1) {
            for (var type : types) {
                environment.error(type, "Project contains " + types.size() + " @" + name + " annotations, should contain one @" + name + " annotation");
            }
        }
    }

    public  SingleParser(Environment environment, Set<Class<? extends Annotation>> annotations, String name);

}