private static long pack(int stubId, @Nullable IStubElementType<?,?> stubElementType) {
    short index = stubElementType == null ? 0 : stubElementType.getIndex();
    assert index >= 0 : "Unregistered token types not allowed here: " + stubElementType;
    return ((long)stubId) | ((long)index << 32);
  }
private static long pack(int stubId, @Nullable IStubElementType<?,?> stubElementType)