@Override
        public void fileDownloaded(final @NotNull VirtualFile localFile) {
          boolean fileTypeChanged = myInitialFileType != null && !FileTypeRegistry.getInstance().isFileOfType(localFile, myInitialFileType);
          VirtualFile thisHttpFile = HttpVirtualFileImpl.this;
          ApplicationManager.getApplication().invokeLater(() -> {
            FileDocumentManager manager = FileDocumentManager.getInstance();
            Document document = manager.getCachedDocument(thisHttpFile);
            if (document != null) {
              manager.reloadFromDisk(document, null);
            }
            if (fileTypeChanged) {
              FileContentUtilCore.reparseFiles(thisHttpFile);
            }
          }, ModalityState.nonModal());
        }
@Override
        public void fileDownloaded(final @NotNull VirtualFile localFile)