void (@Nullable String text) { if (!StringUtil.isEmptyOrSpaces(text)) { List<String> history = ourHistory.get(myInAction); if (history == null) history = new ArrayList<>(); if (!text.equals(ContainerUtil.getFirstItem(history))) { history.add(0, text); } ourHistory.put(myInAction, history); } }