void (final @NotNull PushTargetEditorListener listener) { myDestTargetPanel.addDocumentListener(new DocumentListener() { @Override public void documentChanged(@NotNull DocumentEvent e) { listener.onTargetInEditModeChanged(myDestTargetPanel.getText()); } }); }