[boxing-optimization] Refactoring: splitted common logic of working with local variable table into getValuesStoredOrLoadedToVariable