refactor SourceCodeClassifier, add tests for OpenDeclarationGetter