void (@Nullable XStackFrame frame, @NotNull PyFrameAccessor frameAccessor, @NotNull XValueChildrenList childrenList) { List<PyFrameAccessor.PyAsyncValue<String>> variables = getAsyncValuesFromChildren(childrenList); int chunkSize = Math.max(1, variables.size() / AVAILABLE_PROCESSORS); int left = 0; int right = Math.min(chunkSize, variables.size()); while (left < variables.size()) { frameAccessor.loadAsyncVariablesValues(frame, variables.subList(left, right)); left = right; right = Math.min(right + chunkSize, variables.size()); } }