refactored SourceClassVisitor from java messageextractor