public @Nullable Document getDocument(@NotNull String path) {
    VirtualFile file = findVirtualFile(path);
    if (file == null) return null;
    return FileDocumentManager.getInstance().getDocument(file);
  }
public @Nullable Document getDocument(@NotNull String path)