void () { configureByText(XmlFileType.INSTANCE, "<foo>java.lang.Str<caret>ing</foo>"); BrowseTypeHierarchyAction action = new BrowseTypeHierarchyAction(); AnActionEvent e = TestActionEvent.createTestEvent(action); assertTrue(ActionUtil.lastUpdateAndCheckDumb(action, e, true)); assertTrue(e.getPresentation().isEnabled() && e.getPresentation().isVisible()); }