No, courts are not very interested in wasting their time with a lawsuit where the person suing isn't actually asking for anything if they win.
IANAL, but this sounds incomplete. Declaratory judgements are a thing. Presumably that doesn't apply in this case for various reasons.
Declaratory judgement are only for cases where the mere possibility of an adverse decision is materially impacting you. For example investors being nervous. Its not intended to be a way to make a point.