OptionalProperty extends AbstractProperty<Optional<T>> implements ObservableOptional<T> { @Override @Nullable public final T getValueOrNull() { Optional<T> opt = get(); return opt.orElse(null); }  final void setValue(@NotNull T value); final void clear(); final void setNullableValue(@Nullable T value); @NotNull @Override final ObservableBool isPresent(); @Override @NotNull final T getValue(); @Override @NotNull final T getValueOr(@NotNull T defaultValue); @Override @Nullable final T getValueOrNull();  }
@Test public void testGetValueOrNull() { OptionalProperty<String> optStringValue = OptionalValueProperty.absent(); assertThat(optStringValue.getValueOrNull()).isNull(); }