SymbolDatabase: Refactoring of findFunction