RowData (Object data) { String actionId = null; if (data instanceof String) { actionId = (String)data; } else if (data instanceof QuickList) { actionId = ((QuickList)data).getActionId(); } else if (data instanceof Group) { actionId = ((Group)data).getId(); } if (actionId == null) return new RowData(null, null); Shortcut[] shortcuts = myKeymap.getShortcuts(actionId); Set<String> abbreviations = AbbreviationManager.getInstance().getAbbreviations(actionId); return new RowData(shortcuts, abbreviations); }