There are multiple instances of this method (def nodeWithComputedType(scope: SymbolScope, typeChildren: Boolean, retype: Boolean): Self). Two identical ones in SlickBackend, a very similar one in JdbcStatementBuilderComponent and several other which have smaller or larger differences. The level of code duplication is quite high here and should be refactored.