public static void install(final JComponent component,
@Nullable final Runnable whenPerformed) {
component.registerKeyboardAction(new ActionListener() {
public void actionPerformed(ActionEvent e) {
DataContext dataContext = DataManager.getInstance().getDataContext(component);
OpenSourceUtil.openSourcesFrom(dataContext, true);
if (whenPerformed != null) whenPerformed.run();
}
}, KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), JComponent.WHEN_FOCUSED);
}