NoMainMethodInAbstractClassCheck refactoring.