public static @Nullable ASTNode skipElements(@Nullable ASTNode element, @NotNull TokenSet types) {
    ASTNode candidate = element;
    while (candidate != null && types.contains(candidate.getElementType())) candidate = candidate.getTreeNext();
    return candidate;
  }
public static @Nullable ASTNode skipElements(@Nullable ASTNode element, @NotNull TokenSet types)