void (final List<?> values, final boolean last) { if (myExecutionStack != null && myExecutionStack == mySelectedStack) { CollectionListModel model = myFramesList.getModel(); int insertIndex = model.getSize(); boolean loadingPresent = insertIndex > 0 && model.getElementAt(insertIndex - 1) == null; if (loadingPresent) { insertIndex--; } //noinspection unchecked model.addAll(insertIndex, values); scheduleFilesHighlighting(values, myProject); if (last) { if (loadingPresent) { model.remove(model.getSize() - 1); } } else if (!loadingPresent) { //noinspection unchecked model.add((Object)null); } myFramesList.repaint(); } }