public void fillListeners(Monitor m, List<StatProcessorListener> list, GlobalParams globalParams) throws Exception, ClassNotFoundException, NoSuchMethodException, InstantiationException, IllegalAccessException {
        if (m.getListeners() == null) return;
        for (Monitor.Listeners.Listen l: m.getListeners().getListen()) {
            StatProcessorListener listener = ClassEx.createInstance(StatProcessorListener.class, l.getWith());
            if (listener instanceof ParamsAware) {
                GlobalParams params = globalParams.withLocalParams(l.getParam());
                params.apply(listener);
            }
            list.add(listener);
        }
    }