the prevailing party may be awarded a judgment for reasonable litigation costs incurred in that proceeding.
these actions or cases shall be treated as one civil proceeding regardless of whether the joinder or consolidation actually occurs, unless the court in which the action is brought determines, in its discretion, that it would be inappropriate to treat these actions or cases as joined or consolidated for purposes of this section.
Ca. Rev. and Tax. Code § 7156