public static boolean hasElementType(@NotNull ASTNode node, @NotNull TokenSet set) {
    return set.contains(node.getElementType());
  }
public static boolean hasElementType(@NotNull ASTNode node, @NotNull TokenSet set)