PreCachedDataContext (@Nullable Consumer<? super String> missedKeys) { Consumer<? super String> missedKeysNotNull = missedKeys == null ? s -> { } : missedKeys; return this instanceof InjectedDataContext ? new InjectedDataContext(myComponentRef, myCachedData, myUserData, missedKeysNotNull, myDataManager, myDataKeysCount) : new PreCachedDataContext(myComponentRef, myCachedData, myUserData, missedKeysNotNull, myDataManager, myDataKeysCount); }