static boolean isLaunchNameMatched(Launch launch,EmailSenderCase oneCase){
  List<String> configuredNames=oneCase.getLaunchNames();
  return (null == configuredNames) || (configuredNames.isEmpty()) || configuredNames.contains(launch.getName());
}

static boolean isLaunchNameMatched ( Launch launch , EmailSenderCase oneCase ) { List < String > configuredNames = oneCase . getLaunchNames ( ) ; return ( null == configuredNames ) || ( configuredNames . isEmpty ( ) ) || configuredNames . contains ( launch . getName ( ) ) ; }
validate matching of finished launch name and project settings for emailing
