private void openProcessPopup(boolean requestFocus) { synchronized (myOriginals) { if (myPopup.isShowing()) return; if (hasProgressIndicators()) { myShouldClosePopupAndOnProcessFinish = true; buildInProcessCount(); } else { myShouldClosePopupAndOnProcessFinish = false; restoreEmptyStatus(); } myPopup.show(requestFocus); } }