public boolean isSelected(final Object element){
  return selection.contains(element);
}

public boolean isSelected ( final Object element ) { return selection . contains ( element ) ; }
return true if the specified element is selected .
