boolean (@Nullable VcsRef ref1, @Nullable VcsRef ref2) { if (ref1 == ref2) return true; return ref1 != null && ref2 != null && ref1.getName().equals(ref2.getName()) && ref1.getType().equals(ref2.getType()); }