Condition<SdkTypeId> () { Predicate<SdkTypeId> preferablyNotSimple = notSimpleJavaSdkTypeIfAlternativeExists(); return sdkType -> sdkType instanceof JavaSdkType && NOT_DEPENDENT_TYPE.test(sdkType) && preferablyNotSimple.test(sdkType); }