code: public static boolean compareSignatures(String plainSignature, String genericSignature) {
          GenericSignatureParser plainParser = new GenericSignatureParser(plainSignature);
          GenericSignatureParser genericParser = new GenericSignatureParser(genericSignature);
  
          return plainParser.getNumParameters() == genericParser.getNumParameters();
      }
docs: Compare a plain method signature to the a generic method Signature and
  return true if they match