@Override
      public void fileContentLoaded(final @NotNull VirtualFile virtualFile, @NotNull Document document) {
        PsiFile psiFile = ReadAction.compute(() -> myProject.isDisposed() || !virtualFile.isValid() ? null : getCachedPsiFile(virtualFile));
        fireDocumentCreated(document, psiFile);
      }
@Override
      public void fileContentLoaded(final @NotNull VirtualFile virtualFile, @NotNull Document document)