public void addDirectMethod(EncodedMethod method) {
    if (method == null) {
      throw new NullPointerException("method == null");
    }

    directMethods.add(method);
  }
Adds a direct ({@code static} and/or {@code private}) method.

@param method {@code non-null;} the method to add
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/file/ClassDataItem.java