boolean (@NonNls @Nullable String id) { if (id == null || "top".equals(id)) id = "startpage"; ID mainBundle = Foundation.invoke("NSBundle", "mainBundle"); ID helpBundle = Foundation.invoke(mainBundle, "objectForInfoDictionaryKey:", Foundation.nsString("CFBundleHelpBookName")); if (helpBundle.equals(ID.NIL)) { return false; } ID helpManager = Foundation.invoke("NSHelpManager", "sharedHelpManager"); Foundation.invoke(helpManager, "openHelpAnchor:inBook:", Foundation.nsString(id), helpBundle); return true; }