code: protected String convertMethodToMethodExp(Method method) {
          if (method == null) {
              return null;
          }
          final StringBuilder sb = new StringBuilder();
          final Class<?> returnType = method.getReturnType();
          sb.append(returnType != null ? returnType.getSimpleName() : "void"); // just in case
          sb.append(" ").append(method.getName()).append("(");
          final Class<?>[] parameterTypes = method.getParameterTypes();
          int parameterIndex = 0;
          for (Class<?> parameterType : parameterTypes) {
              if (parameterIndex > 0) {
                  sb.append(", ");
              }
              sb.append(parameterType.getSimpleName());
              ++parameterIndex;
          }
          sb.append(")");
          return sb.toString();
      }
docs: ============