docs: public String getNameInClass(boolean shortenPackages, boolean useJVMMethodName, boolean hash, boolean omitMethodName) {
          // Convert to "nice" representation
          StringBuilder result = new StringBuilder();
          if (!omitMethodName) {
              if (useJVMMethodName) {
                  result.append(getMethodName());
              } else {
                  result.append(getJavaSourceMethodName());
              }
          }
          result.append('(');
  
          // append args
          SignatureConverter converter = new SignatureConverter(methodSig);
  
          if (converter.getFirst() != '(') {
              throw new IllegalStateException("bad method signature " + methodSig);
          }
          converter.skip();
  
          boolean needsComma = false;
          while (converter.getFirst() != ')') {
              if (needsComma) {
                  if (hash) {
                      result.append(",");
                  } else {
                      result.append(", ");
                  }
              }
              if (shortenPackages) {
                  result.append(removePackageName(converter.parseNext()));
              } else {
                  result.append(converter.parseNext());
              }
              needsComma = true;
          }
          converter.skip();
  
          result.append(')');
          return result.toString();
      }