Source:
private List<? extends CloudConfiguration> getDefaultConfigurations(AndroidFacet facet, Kind kind) { if (kind == SINGLE_DEVICE) { CloudConfigurationImpl defaultConfiguration = new CloudConfigurationImpl(CloudConfigurationImpl.DEFAULT_DEVICE_CONFIGURATION_ID, "", SINGLE_DEVICE, AndroidIcons.Display, facet); defaultConfiguration.apiDimension.enableDefault(); ImmutableList<CloudTestingType> enabledApis = defaultConfiguration.apiDimension.getEnabledTypes(); if (enabledApis.size() < 1) { return ImmutableList.of(); } defaultConfiguration.deviceDimension.enableDefault(enabledApis.get(0).getId()); defaultConfiguration.languageDimension.enableDefault(); defaultConfiguration.orientationDimension.enableDefault(); ImmutableList<CloudTestingType> enabledDevices = defaultConfiguration.deviceDimension.getEnabledTypes(); if (enabledDevices.size() < 1 || defaultConfiguration.languageDimension.getEnabledTypes().size() < 1 || defaultConfiguration.orientationDimension.getEnabledTypes().size() < 1) { return ImmutableList.of(); } defaultConfiguration.setName(enabledDevices.get(0).getConfigurationDialogDisplayName() + " API " + enabledApis.get(0).getId()); defaultConfiguration.setNonEditable(); return ImmutableList.of(defaultConfiguration); } CloudConfigurationImpl allConfiguration = new CloudConfigurationImpl(CloudConfigurationImpl.ALL_CONFIGURATION_ID, "All Compatible", MATRIX, AndroidIcons.Display, facet); allConfiguration.deviceDimension.enableAll(); allConfiguration.apiDimension.enableAll(); allConfiguration.languageDimension.enableAll(); allConfiguration.orientationDimension.enableAll(); allConfiguration.setNonEditable(); return ImmutableList.of(allConfiguration); }

Target:
private List<? extends CloudConfiguration> getDefaultConfigurations(AndroidFacet facet, Kind kind) { if (kind == SINGLE_DEVICE) { CloudConfigurationImpl defaultConfiguration = new CloudConfigurationImpl(CloudConfigurationImpl.DEFAULT_DEVICE_CONFIGURATION_ID, "", SINGLE_DEVICE, AndroidIcons.Display, facet); defaultConfiguration.apiDimension.enableDefault(); ImmutableList<CloudTestingType> enabledApis = defaultConfiguration.apiDimension.getEnabledTypes(); if (enabledApis.isEmpty()) { return ImmutableList.of(); } defaultConfiguration.deviceDimension.enableDefault(enabledApis.get(0).getId()); defaultConfiguration.languageDimension.enableDefault(); defaultConfiguration.orientationDimension.enableDefault(); ImmutableList<CloudTestingType> enabledDevices = defaultConfiguration.deviceDimension.getEnabledTypes(); if (enabledDevices.isEmpty() || defaultConfiguration.languageDimension.getEnabledTypes().isEmpty() || defaultConfiguration.orientationDimension.getEnabledTypes().isEmpty()) { return ImmutableList.of(); } defaultConfiguration.setName(enabledDevices.get(0).getConfigurationDialogDisplayName() + " API " + enabledApis.get(0).getId()); defaultConfiguration.setNonEditable(); return ImmutableList.of(defaultConfiguration); } CloudConfigurationImpl allConfiguration = new CloudConfigurationImpl(CloudConfigurationImpl.ALL_CONFIGURATION_ID, "All Compatible", MATRIX, AndroidIcons.Display, facet); allConfiguration.deviceDimension.enableAll(); allConfiguration.apiDimension.enableAll(); allConfiguration.languageDimension.enableAll(); allConfiguration.orientationDimension.enableAll(); allConfiguration.setNonEditable(); return ImmutableList.of(allConfiguration); }