CugContext implements Context, CugConstants { @Override public boolean definesTree(@NotNull Tree tree) { return CugUtil.definesCug(tree); } private  CugContext(); @Override boolean definesProperty(@NotNull Tree parent, @NotNull PropertyState property); @Override boolean definesContextRoot(@NotNull Tree tree); @Override boolean definesTree(@NotNull Tree tree); @Override boolean definesLocation(@NotNull TreeLocation location); @Override boolean definesInternal(@NotNull Tree tree);  }
@Test public void testDefinesTree() { assertTrue(CugContext.INSTANCE.definesTree(root.getTree(CUG_PATH))); for (String path : NO_CUG_PATH) { assertFalse(path, CugContext.INSTANCE.definesTree(root.getTree(path))); } }