extract LanguageService.getSymbol

refactoring