This is hard to read. Pull out the conditional into a separate line:

```java
List<SimpleRange> xxx = null;
if (ranges.isPresent()) {
   xxx = ImmutableList.copyOf(ranges.get());
}

this.ranges = Optional.fromNullable(xxx);
```

In Java 8 this will be a lot easier to express:
```
this.ranges = ranges.map((x) -> ImmutableList.copyOf(x));
```