private boolean getInjectedWithHosts(@NotNull List<? extends PsiElement> elements,
                                       @NotNull JobLauncherImpl.QueueController<? super Pair<PsiFile, PsiElement>> addToQueue) {
    Map<PsiFile, PsiElement> injectedToHost = createInjectedFileMap();
    try {
      Project project = myPsiFile.getProject();
      for (PsiElement element : elements) {
        InjectedLanguageManager.getInstance(project).enumerateEx(element, myPsiFile, false, (injectedPsi, places) -> {
           if (injectedToHost.put(injectedPsi, element) == null) {
             if (LOG.isTraceEnabled()) {
               LOG.trace("getInjectedWithHosts: found injected " +injectedPsi+ " at "+places.size()+" places: "+places+"; "+injectedPsi);
             }
             addToQueue.enqueue(Pair.create(injectedPsi, element));
           }
        });
      }
    }
    finally {
      addToQueue.finish(); // no more injections
    }
    myInjectedFragments.addAll(injectedToHost.keySet());
    return true;
  }
private boolean getInjectedWithHosts(@NotNull List<? extends PsiElement> elements,
                                       @NotNull JobLauncherImpl.QueueController<? super Pair<PsiFile, PsiElement>> addToQueue)