boolean (PsiElement element, @Nullable Language editorLanguage, Editor editor) { for(InlineActionHandler handler: InlineActionHandler.EP_NAME.getExtensionList()) { if (handler.isEnabledOnElement(element, editor)) { return true; } } List<InlineHandler> handlers = InlineHandlers.getInlineHandlers( editorLanguage != null ? editorLanguage : element.getLanguage() ); for (InlineHandler handler : handlers) { if (handler.canInlineElement(element)) { return true; } } return false; }