#196 add preconditions concerning the enabled state of buttons of one group
#196 make util method static