Set<String> (VirtualFile f, Function<? super MavenRepositoryArtifactInfo, String> lookupElementStringFunction) { configTest(f); LookupElement[] variants = myFixture.completeBasic(); Set<String> result = new TreeSet<>(); for (LookupElement each : variants) { var object = each.getObject(); if (object instanceof MavenRepositoryArtifactInfo info) { result.add(lookupElementStringFunction.apply(info)); } } return result; }