public StaticMethod asStatic() {
      Preconditions.checkState(isStatic(), "Method is not static");
      return new StaticMethod(this);
    }
Returns this method as a StaticMethod.

@return a {@link StaticMethod} for this method
@throws IllegalStateException if the method is not static
amoro-common/src/main/java/org/apache/amoro/utils/DynMethods.java