I have a trait and some classes extending it. The problem is that all method in the trait should be implemented statically, so I put them in the corresponding companion obje