boolean (@NotNull LookupElement element) { if (!super.prefixMatches(element)) return false; if (!myPrefix.contains(" ")) return true; String signature = element.getLookupString(); FList<TextRange> fragments = matchingFragments(signature); return fragments == null || !ContainerUtil.exists(fragments, f -> isMiddleMatch(signature, f)); }