boolean (Language language) { for(InlineActionHandler handler: InlineActionHandler.EP_NAME.getExtensionList()) { if (handler.isEnabledForLanguage(language)) { return true; } } return InlineHandlers.getInlineHandlers(language).size() > 0; }