private static void addVariantsFromIndex(final CompletionResultSet resultSet,
final PsiFile targetFile,
@Nullable String prefixPackage,
@Nullable final InsertHandler<LookupElement> insertHandler) {
final Project project = targetFile.getProject();
final GlobalSearchScope scope = HaxeResolveUtil.getScopeForElement(targetFile);
final MyProcessor processor = new MyProcessor(resultSet, prefixPackage, insertHandler);
HaxeComponentIndex.processAll(project, processor, scope);
if (insertHandler != null) {
targetFile.acceptChildren(new HaxeRecursiveVisitor() {