Paula Carey, who is set to retire in January as chief justice of the Massachusetts Trial Court, said it had been a wild but in many ways fruitful last 19 months navigating the state's nearly 100 courthouses, 385 judges and 6,300 staff members through the COVID-19 pandemic.