boolean (@NotNull ChangesBrowserNode<?> node) { boolean enabled = super.isInclusionEnabled(node); Object value = node.getUserObject(); if (value instanceof AbstractFilePatchInProgress.PatchChange) { enabled &= ((AbstractFilePatchInProgress.PatchChange)value).isValid(); } return enabled; }