private static Document getDocumentForFile(@NotNull ExceptionLineParser worker) {
    return ReadAction.compute(() -> {
      final Document document = FileDocumentManager.getInstance().getDocument(worker.getFile().getVirtualFile());
      if (document == null) {
        LOG.info("can not get document for file: " + worker.getFile().getVirtualFile());
        return null;
      }
      return document;
    });
  }
private static Document getDocumentForFile(@NotNull ExceptionLineParser worker)