private final int countStrokes(final Trigger[] triggers) {
int strokeCount = triggers.length;
for (int i = 0; i < triggers.length; i++) {
final Trigger trigger = triggers[i];
if (trigger instanceof KeyStroke) {
final KeyStroke keyStroke = (KeyStroke) trigger;
if( keyStroke.hasAltModifier() ) {
strokeCount += 8;
}
if( keyStroke.hasCtrlModifier() ) {
strokeCount += 2;
}
if( keyStroke.hasShiftModifier() ) {
strokeCount += 4;
}
if( keyStroke.hasCommandModifier() ) {
strokeCount += 2;
}
// final int modifierKeys = keyStroke.getModifierKeys();