MethodAccessChecker implements Logging { public static MethodAccessChecker forMethod(Method method) { checkNotNull(method); return new MethodAccessChecker(method); } private  MethodAccessChecker(Method method); static MethodAccessChecker forMethod(Method method); void checkPublic(String warningMessageFormat); void checkPackagePrivate(String warningMessageFormat); void checkPrivate(String warningMessageFormat);  }
@Test @DisplayName(NOT_ACCEPT_NULLS) void passNullToleranceCheck() { new NullPointerTester().testAllPublicStaticMethods(MethodAccessChecker.class); Method method = publicMethod(); MethodAccessChecker checker = forMethod(method); new NullPointerTester().testAllPublicInstanceMethods(checker); }