private void clearInjectorCache() {
    cachedInjectors = null;
    if (myProject.isDisposed() || myProject.isDefault()) {
      return;
    }

    for (VirtualFile file : FileEditorManager.getInstance(myProject).getOpenFiles()) {
      PsiFile psiFile = PsiManager.getInstance(myProject).findFile(file);
      if (psiFile != null) {
        for (DocumentWindow document : InjectedLanguageUtilBase.getCachedInjectedDocuments(psiFile)) {
          InjectedEditorWindowTracker.getInstance().disposeEditorFor(document);
        }
        dropFileCaches(psiFile);
      }
    }
  }
private void clearInjectorCache()