private @Nullable VirtualFile extractFileFromValue() {
    Object value = getEqualityObject();
    if (value instanceof SmartPsiElementPointer<?> pointer) {
      // see #getValue && default implementation of TreeAnchorizer
      return pointer.getVirtualFile();
    }
    return null;
  }
private @Nullable VirtualFile extractFileFromValue()