boolean () { try { /* getVersionDetails() was introduced alongside JCEF API versioning with first version of 1.1, which also added these necessary * for shortcuts to work CefFrame methods. Therefore successful call to getVersionDetails() means our JCEF API is at least 1.1 */ JCefAppConfig.getVersionDetails(); return true; } catch (NoSuchMethodError | JCefVersionDetails.VersionUnavailableException e) { Logger.getInstance(ShortcutProvider.class).warn("JCEF shortcuts are unavailable (incompatible API)", e); return false; } }