static boolean annotationsEqual(Annotation a, Annotation b)
{
+ if (a == null && b == null)
+ return true;
+ if ((a == null) != (b == null)) // if one is null but the other is not
+ return false;
return a.secondaryStructure == b.secondaryStructure && a.value == b.value
&& Objects.equals(a.colour, b.colour)
&& Objects