code: public MethodInfo[] getMethods() {
          int size = mMethods.size();
          List<MethodInfo> methodsOnly = new ArrayList<MethodInfo>(size);
  
          for (int i=0; i<size; i++) {
              MethodInfo method = mMethods.get(i);
              String name = method.getName();
              if (!"<init>".equals(name) && !"<clinit>".equals(name)) {
                  methodsOnly.add(method);
              }
          }
  
          MethodInfo[] methodsArray = new MethodInfo[methodsOnly.size()];
          return methodsOnly.toArray(methodsArray);
      }
docs: Returns all the methods defined in this class, not including
  constructors and static initializers.