docs: def try_fields(cls, *names) -> t.Optional[t.Any]:
          """Return first existing of given class field names."""
          for name in names:
              if hasattr(cls, name):
                  return getattr(cls, name)
          raise AttributeError((cls, names))