Small refactoring in _getTypeBlock() method
_getTypeBlock was renamed to _getTypeOfBlock