NodeTypePattern implements RestrictionPattern { @Override public int hashCode() { return nodeTypeNames.hashCode(); } NodeTypePattern(@NotNull Iterable<String> nodeTypeNames); @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 testHashCode() { assertEquals(ntNames.hashCode(), pattern.hashCode()); }