boolean (@NotNull Ref<UsageInfo[]> refUsages) { if (refUsages.get().length == 0) { Messages.showInfoMessage(myProject, JavaRefactoringBundle.message("migration.no.usages.found.in.the.project"), getRefactoringName()); return false; } setPreviewUsages(true); return true; }