It is both the constitutional court and the court of last resort in Brazilian law.