private static boolean isAvailableForPlatform(@NotNull final AppCodeRunConfiguration config) {
return ApplicationManager.getApplication().runReadAction(new Computable<Boolean>() {
@Override
public Boolean compute() {
XCBuildConfiguration configuration = config.getConfiguration();
AppleSdk sdk = configuration == null ? null : configuration.getBaseSdk();
return sdk != null && sdk.getPlatform().isIOS();
}
});
}