void (@NotNull IPopupChooserBuilder builder, final boolean includeContainerText) { builder.setNamerForFiltering(o -> { if (o instanceof PsiElement) { final String elementText = getElementText((T)o); if (includeContainerText) { return elementText + " " + getContainerText((T)o, elementText); } return elementText; } return o.toString(); }); }