@Override
  public void serialize(@NotNull DataOutput out, @NotNull VcsRefType type) throws IOException {
    out.writeInt(REF_TYPE_INDEX.indexOf(type));
  }
@Override
  public void serialize(@NotNull DataOutput out, @NotNull VcsRefType type)