void (final String name) { UIUtil.invokeAndWaitIfNeeded(() -> { try { TestNGUtil.hasDocTagsSupport = true; doTest("undeclaredTests/" + name, new UndeclaredTestInspection()); } catch (Exception e) { throw new RuntimeException(e); } }); }