boolean updateSelectedVariant(@NotNull Project project,@NotNull String moduleName,@NotNull String buildVariantName){
  List<AndroidFacet> affectedAndroidFacets=Lists.newArrayList();
  List<NativeAndroidGradleFacet> affectedNativeAndroidFacets=Lists.newArrayList();
  executeProjectChanges(project,null);
  return !affectedAndroidFacets.isEmpty() || !affectedNativeAndroidFacets.isEmpty();
}

boolean updateSelectedVariant ( @ NotNull Project project , @ NotNull String moduleName , @ NotNull String buildVariantName ) { List < AndroidFacet > affectedAndroidFacets = Lists . newArrayList ( ) ; List < NativeAndroidGradleFacet > affectedNativeAndroidFacets = Lists . newArrayList ( ) ; executeProjectChanges ( project , null ) ; return ! affectedAndroidFacets . isEmpty ( ) || ! affectedNativeAndroidFacets . isEmpty ( ) ; }
updates a module ' s structure when the user selects a build variant from the tool window .
