@Contract("null -> null")
  @Nullable
  static IElementType getElementType(@Nullable Block block) {
    ASTNode node = getNode(block);
    return node == null ? null : node.getElementType();
  }
@Contract("null -> null")
  @Nullable
  static IElementType getElementType(@Nullable Block block)