public @Nullable FileReference getLastReference() {
    return myReferences == null || myReferences.length == 0 ? null : myReferences[myReferences.length - 1];
  }
public @Nullable FileReference getLastReference()