private boolean isSelection() {
    Color bg = getBackground();
    return bg != null
           && Comparing.equal(UIUtil.getTreeSelectionBackground(true), bg)
           || Comparing.equal(UIUtil.getListSelectionBackground(true), bg);
  }
private boolean isSelection()