void (@NotNull DocumentEvent e) { if (!locked) { String input = myTextField.getText(); currentMatcher = NameUtil.buildMatcher("*" + input).build(); List<CompletionItem> filtered = ContainerUtil.filter(items, item -> currentMatcher.matches(item.displayText)); updateTemplatesList(filtered); } }