List<V> (Object value) { if (value == null) { return Collections.emptyList(); } else if (value instanceof ValueList) { //noinspection unchecked return (ValueList<V>)value; } else { //noinspection unchecked return Collections.singletonList((V)value); } }