ExtendableTextField () { ExtendableTextField searchField = super.createSearchField(); Consumer<? super ExtendableTextComponent.Extension> extensionConsumer = (extension) -> searchField.addExtension(extension); searchField.addPropertyChangeListener(new RunAnythingIconHandler(extensionConsumer, searchField)); return searchField; }