void () { ActionManagerImpl mgr = (ActionManagerImpl)ActionManager.getInstance(); Set<String> ids = mgr.getActionIds(); List<String> failed = new ArrayList<>(); for (String id : ids) { if (KNOWN_FALSE_POSITIVES.contains(id)) continue; AnAction action = mgr.getActionOrStub(id); if (action == null) fail("Can't find action: " + id); Presentation presentation = action.getTemplatePresentation(); String text = presentation.getText(); String description = presentation.getDescription(); if (!isValidText(text) || !isValidText(description)) { Object aClass = action instanceof ActionStub ? "class "+((ActionStub)action).getClassName() : action.getClass(); failed.add(id + "; " + aClass + "; text: '" + text + "'; description: '" + description + "'\n"); } } System.err.println(failed); assertEmpty("The following actions might have invalid template presentation:\n", failed); }