boolean (@NotNull Ref<UsageInfo[]> refUsages) { if (!ApplicationManager.getApplication().isUnitTestMode() && refUsages.get().length == 0) { String message = JavaRefactoringBundle.message("no.usages.can.be.replaced", myClass.getQualifiedName(), mySuper.getQualifiedName()); Messages.showInfoMessage(myProject, message, TurnRefsToSuperHandler.getRefactoringName()); return false; } return super.preprocessUsages(refUsages); }