result = Optional.ofNullable(nullableVariable) .map(NullableType::someMethodCall) .orElseGet(this::fallbackIfNullMethodCall);