GlobPattern implements RestrictionPattern { @Override public boolean matches(@NotNull Tree tree, @Nullable PropertyState property) { String itemPath = (property == null) ? tree.getPath() : PathUtils.concat(tree.getPath(), property.getName()); return matches(itemPath); } private  GlobPattern(@NotNull String path, @NotNull String restriction); @Override boolean matches(@NotNull Tree tree, @Nullable PropertyState property); @Override boolean matches(@NotNull String path); @Override boolean matches(); @Override int hashCode(); @Override String toString(); @Override boolean equals(Object obj);  }
@Test public void testMatches() { assertFalse(GlobPattern.create("/a/b/c/d", "/*").matches()); }