public class FileContentQueue {
private static final Logger LOG = Logger.getInstance("#com.intellij.ide.startup.FileContentQueue");
private static final long SIZE_THRESHOLD = 1024*1024;
private long myTotalSize;
private final ArrayBlockingQueue<FileContent> myQueue = new ArrayBlockingQueue<FileContent>(256);
<BUG>private FileContent myPushbackBuffer;
public void queue(final Collection<VirtualFile> files, @Nullable final ProgressIndicator indicator) {</BUG>
final Runnable contentLoadingRunnable = new Runnable() {
public void run() {
try {

public class FileContentQueue {
private static final Logger LOG = Logger.getInstance("#com.intellij.ide.startup.FileContentQueue");
private static final long SIZE_THRESHOLD = 1024*1024;
private long myTotalSize;
private final ArrayBlockingQueue<FileContent> myQueue = new ArrayBlockingQueue<FileContent>(256);
private Queue<FileContent> myPushbackBuffer = new ArrayDeque<FileContent>();
public void queue(final Collection<VirtualFile> files, @Nullable final ProgressIndicator indicator) {
final Runnable contentLoadingRunnable = new Runnable() {
public void run() {
try {
