public static boolean is(@Nullable ASTNode element, @NotNull TokenSet tokenSet) {
    boolean isNotNull = element != null;
    if (!isNotNull) {
      return false;
    }
    return ParentProviderElementType.containsWithSourceParent(element.getElementType(), tokenSet);
  }
public static boolean is(@Nullable ASTNode element, @NotNull TokenSet tokenSet)