class PluginParser extends Parser<T> {

    @Override
    protected void check(Set<T> types) {
        if (types.isEmpty()) {
            environment.error("Project does not contain a @Plugin annotation, should contain one @Plugin annotation");
            
        } else if (types.size() > 1) {
            for (var type : types) {
                environment.error(type, "Project contains " + types.size() + " @Plugin annotations, should contain one @Plugin annotation");
            }
            
        } else {
            check(new ArrayList<>(types).get(0));
        }
    }

    public  PluginParser(Environment<T> environment);

}