CellAppearanceEx (@Nullable Sdk sdk, boolean isInComboBox, boolean selected, boolean showVersion) { if (sdk == null) { return forNullSdk(selected); } String name = sdk.getName(); SdkType sdkType = (SdkType)sdk.getSdkType(); boolean hasValidPath = sdkType.sdkHasValidPath(sdk); String versionString = showVersion ? sdk.getVersionString() : null; return forSdk(sdkType, name, versionString, hasValidPath, isInComboBox, selected); }