void (@NotNull IdeFrame frame) { if (!SystemInfoRt.isMac || !Registry.is("actionSystem.mouseGesturesEnabled", true)) { return; } try { if (myListeners.containsKey(frame)) { remove(frame); } myListeners.put(frame, new MacGestureAdapter(this, frame)); } catch (Throwable e) { LOG.error("Can't initialize MacGestureAdapter", e); } }