boolean (@Nullable JFrame frame, Object processId) { EDT.assertIsEdt(); if (myCurrentProcessId != null && !myCurrentProcessId.equals(processId)) { return false; } BufferedImage appImage = getAppImage(); if (appImage == null) { return false; } setDockIcon(appImage); myProgressImagesCache.remove(myCurrentProcessId); myCurrentProcessId = null; myLastValue = 0; return true; }