void () { myFixture.configureByText("foo.java", ""); DataContext context = ((EditorEx)myFixture.getEditor()).getDataContext(); AnActionEvent event = AnActionEvent.createFromDataContext(ActionPlaces.UNKNOWN, null, context); AnAction[] children = new CreateFromTemplateGroup().getChildren(event); assertFalse(ContainerUtil.exists(children, action -> isTemplateAction(action, "Class"))); }