
This code does not account for the possibility of the Link target being empty and therefore not having a section key. In the above code data.get(key) returns null and not an empty Set. That also needs to be wrapped in a MoreObjects.firstNonNull situation