boolean () { List<UnifiedDiffChange> changes = myModel.getDiffChanges(); if (changes == null || changes.isEmpty()) return false; return DiffUtil.isSomeRangeSelected(getEditor(), lines -> ContainerUtil.exists(changes, change -> isChangeSelected(change, lines))); }