void (KeyEvent e) { if (e.getKeyCode() == KeyEvent.VK_ENTER && TerminalArrangementManager.isAvailable()) { alarm.cancelAllRequests(); if (!alarm.isDisposed()) { alarm.addRequest(() -> updateWorkingDirectory(content, dataRef.get()), MERGE_WAIT_MILLIS); } } }