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

    return value;
  }
public int[] getBuffer(int size)