static @NotNull ClassMember from(@NotNull MemberChooserElement element) {
    if (element instanceof ClassMember member) return member;
    return new ClassMember() {
      @Override
      public MemberChooserObject getParentNodeDelegate() {
        return null;
      }

      @Override
      public void renderTreeNode(SimpleColoredComponent component, JTree tree) {
        SimpleTextAttributes attributes = new SimpleTextAttributes(SimpleTextAttributes.STYLE_PLAIN, RenderingUtil.getForeground(tree));
        SpeedSearchUtil.appendFragmentsForSpeedSearch(tree, getText(), attributes, false, component);
      }

      @Override
      public @NotNull String getText() {
        return element.getText();
      }
    };
  }
static @NotNull ClassMember from(@NotNull MemberChooserElement element)