private static @Nullable TreeElement findFirstSuitableElement(@NotNull ASTNode element) {
    if (isSuitableElement(element)) {
      return (TreeElement)element;
    }
    else {
      for (ASTNode child = element.getFirstChildNode(); child != null; child = child.getTreeNext()) {
        TreeElement leaf = findFirstSuitableElement(child);
        if (leaf != null) return leaf;
      }
      return null;
    }
  }
private static @Nullable TreeElement findFirstSuitableElement(@NotNull ASTNode element)