Revert "Fail-fast when annotated methods in non-public class is detected."

This reverts commit 3422a01c9bb31e97d837a0fff8088f91677db700.