public static boolean isAccessorPair(TMember member,TMember member2){
  return (member instanceof TGetter && member2 instanceof TSetter) || (member instanceof TSetter && member2 instanceof TGetter);
}

public static boolean isAccessorPair ( TMember member , TMember member2 ) { return ( member instanceof TGetter && member2 instanceof TSetter ) || ( member instanceof TSetter && member2 instanceof TGetter ) ; }
returns true if one of the members is a getter and the other one is a setter . no further validation such as name or owner comparison is done as this is expected to be done in the client already .
