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