public boolean hasSingleElement(){
  return mSelectedWidgets.size() == 1;
}

public boolean hasSingleElement ( ) { return mSelectedWidgets . size ( ) == 1 ; }
check if the selection has a single element
