void (String name, AWTEvent event) { if (event instanceof KeyEvent && ApplicationManager.getApplication() != null && LoadingState.COMPONENTS_REGISTERED.isOccurred()) { // noinspection removal ActionsCollector.getInstance().record(name, (KeyEvent)event, getClass()); } }