byte[] (int size) { byte[] value = com.intellij.reference.SoftReference.dereference(myThreadLocal.get()); if (value == null || value.length <= size) { value = ArrayUtil.newByteArray(size); myThreadLocal.set(new SoftReference<>(value)); } return value; }