interface Either { public static final class Left { private final L value; private Left(L value) { this.value = value; } } } class Main { { new Either.Left<>(""); } }