final KeyStroke[] keyStrokeArray = (KeyStroke[]) keyStrokes
.toArray(new KeyStroke[keyStrokes.size()]);
return new KeySequenceImpl(keyStrokeArray);
} catch (final IllegalArgumentException e) {
throw new ParseException(
"Could not construct key sequence with these key strokes: " //$NON-NLS-1$
+ keyStrokes);
} catch (final NullPointerException e) {
throw new ParseException(
"Could not construct key sequence with these key strokes: " //$NON-NLS-1$
+ keyStrokes);
}
}