void (String @NotNull ... expected) { LookupElement[] lookupElements = doExtendedCompletion(); List<String> qNames = StreamEx.of(lookupElements) .map(LookupElement::getPsiElement) .nonNull() .map(PyClassNameCompletionTest::extractQualifiedName) .toList(); assertContainsInRelativeOrder(qNames, expected); }