void (@NotNull String command, @NotNull String projectPath) { myWorkDirectory = projectPath.trim(); command = command.trim(); if (command.length() == 0) return; myHistory.remove(command); myHistory.addFirst(command); while (myHistory.size() > MAX_HISTORY_LENGTH) { myHistory.removeLast(); } }