void (@NotNull DocumentEvent e) { if (e.getType() == DocumentEvent.EventType.INSERT && e.getOffset() == 0 && e.getLength() == e.getDocument().getLength()) { var text = pathEditor.getText(); if (StringUtil.isQuotedString(text)) { EventQueue.invokeLater(() -> pathEditor.setText(text.substring(1, text.length() - 1))); } } }