private boolean shouldRegisterDocument(@Nullable VirtualFile f) {
    try (AccessToken ignore = SlowOperations.knownIssue("IDEA-307668, EA-821075")) {
      return f != null && f.isValid() && areContentChangesVersioned(f);
    }
  }
private boolean shouldRegisterDocument(@Nullable VirtualFile f)