public boolean matchesMethod(String targetClassName,String targetMethodName,String candidateClassName,String candidateMethodName){
  if (targetClassName != null) {
    return (candidateClassName == null || targetClassName.equals(candidateClassName)) && (candidateMethodName == null || targetMethodName.equals(candidateMethodName));
  }
 else {
    return targetMethodName.equals(candidateMethodName);
  }
}

public boolean matchesMethod ( String targetClassName , String targetMethodName , String candidateClassName , String candidateMethodName ) { if ( targetClassName != null ) { return ( candidateClassName == null || targetClassName . equals ( candidateClassName ) ) && ( candidateMethodName == null || targetMethodName . equals ( candidateMethodName ) ) ; } else { return targetMethodName . equals ( candidateMethodName ) ; } }
returns true if the candidate method matches the target method .
