Refactored AbstractAnnotationProcessor. The class no able to handle static factory methods.