+ private static void getComparable(UpdateNode n, GraphChanges gc1, GraphChanges gc2, GraphChanges gc3, Set<Resource> nodeR) {
+ nodeR.clear();
+ Resource r = n.getResource();
+ nodeR.add(r);
+ addNotNull(nodeR,gc1.getComparable().getLeft(r));
+ addNotNull(nodeR,gc1.getComparable().getRight(r));
+ addNotNull(nodeR,gc2.getComparable().getLeft(r));
+ addNotNull(nodeR,gc2.getComparable().getRight(r));
+ addNotNull(nodeR,gc3.getComparable().getLeft(r));
+ addNotNull(nodeR,gc3.getComparable().getRight(r));
+
+ }
+
+ public static <T> void addNotNull(Set<T> set, T t) {
+ if (t != null)
+ set.add(t);
+ }
+