void () { ProgressIndicator indicator = ProgressIndicatorProvider.getGlobalProgressIndicator(); if (indicator instanceof PingProgress && EDT.isCurrentThreadEdt()) { ((PingProgress)indicator).interact(); } }