public static String selectorName(String jMethodName,boolean hasArgs){
  String b=jMethodName.replaceAll("_",":");
  return hasArgs ? b + ":" : b;
}

public static String selectorName ( String jMethodName , boolean hasArgs ) { String b = jMethodName . replaceAll ( "_" , ":" ) ; return hasArgs ? b + ":" : b ; }
converts something like " performselectoronmainthread_withobject_wait " to " performselectoronmainthread : withobject : wait : "
