@NotNull
  private static List<ReferenceChainLink> reversedChain(List<ReferenceChainLink> chain) {
    Collections.reverse(chain);
    return chain;
  }
@NotNull
  private static List<ReferenceChainLink> reversedChain(List<ReferenceChainLink> chain)