private static boolean isJdk8DefaultMethod(Method method) {
    return ((method.getModifiers() & (Modifier.ABSTRACT | Modifier.PUBLIC | Modifier.STATIC)) ==
         Modifier.PUBLIC) && method.getDeclaringClass().isInterface();
  }
private static boolean isJdk8DefaultMethod(Method method)