CoralVM-Java: Implementing a better Either utility class