Articles 49 TFEU, 63 TFEU and 65 TFEU must be interpreted as precluding legislation of a Member State under which, where a resident of that Member State who is a shareholder of a company established in another Member State receives dividends taxed in the two Member States and the double taxation is regulated by the imputation in the Member State of residence of a tax credit of an amount corresponding to the tax paid in the State of the distributing company, a mechanism capping various direct taxes at a certain percentage of income received during a year does not take into account, or takes only partially into account, the tax paid in the State of the distributing company.