String (@NotNull DataContext dataContext) { Editor editor = dataContext.getData(CommonDataKeys.EDITOR); PsiElement element = findRefactoringTargetInEditor(dataContext, this::isAvailableForLanguage); if (element != null && editor != null) { for (InlineActionHandler handler: InlineActionHandler.EP_NAME.getExtensionList()) { if (handler.isEnabledOnElement(element, editor)) { return handler.getActionName(element); } } } return super.getActionName(dataContext); }