public Icon getIcon() {
    return switch (this) {
      case File -> AllIcons.FileTypes.Any_type;
      case Pattern -> AllIcons.FileTypes.Unknown;
      case Directory -> AllIcons.Nodes.Folder;
    };
  }
public Icon getIcon()