static private void doActions(Collection<? extends ActionListener> actionListeners) {
        Iterable<? extends ActionListener> actionListenersCopy = new ArrayList<>(actionListeners);
        for (ActionListener actionListener : actionListenersCopy) {
            actionListener.actionPerformed(null);
        }
    }