ThreeState (@NotNull Change change1, @NotNull Change change2) { if (change1 instanceof ConflictedSvnChange conflict1 && change2 instanceof ConflictedSvnChange conflict2) { if (!conflict1.isTreeConflict() && !conflict2.isTreeConflict()) return ThreeState.UNSURE; if (!conflict1.isTreeConflict() || !conflict2.isTreeConflict()) return ThreeState.NO; TreeConflictDescription description1 = conflict1.getBeforeDescription(); TreeConflictDescription description2 = conflict2.getBeforeDescription(); return TreeConflictRefreshablePanel.descriptionsEqual(description1, description2) ? ThreeState.YES : ThreeState.NO; } return ThreeState.UNSURE; }