void (int total) { myTotalInstancesCount = total; myFilteringStartedTime = System.nanoTime(); myLastTreeUpdatingTime = myFilteringStartedTime; myLastProgressUpdatingTime = System.nanoTime(); myIsInProcess = false; myErrorsCount = 0; myProceedCount = 0; myMatchedCount = 0; myCompletionReason = null; ApplicationManager.getApplication().invokeLater(() -> myProgressIndicator.start()); }