Va. Code Ann. § 64.2-1071
A. This section applies when:
C. A fiduciary shall determine the income and net income of an estate or income interest in a trust that terminates, other than the amount of net income determined under subsection B, under Articles 4 (§ 64.2-1048 et seq.), 5 (§ 64.2-1051 et seq.), 6 (§ 64.2-1055 et seq.), 7 (§ 64.2-1064 et seq.), and 9 (§ 64.2-1073 et seq.), and by:
2. Paying from income or principal, in the fiduciary's discretion, fees of attorneys, accountants, and fiduciaries, court costs and other expenses of administration, and interest on estate and inheritance taxes and other taxes imposed because of the decedent's death, but the fiduciary may pay the expenses from income of property passing to a trust for which the fiduciary claims a federal estate tax marital or charitable deduction only to the extent:
3. Paying from principal other disbursements made or incurred in connection with the settlement of the estate or the winding up of an income interest that terminates, including:
2022, c. 354.