boolean (UsageView usageView, boolean success) { if (usageView.getUsages().isEmpty()) { usageView.close(); return true; } if (!success) { NOTIFICATION_GROUP.createNotification(FindBundle.message("notification.content.one.or.more.malformed.replacement.strings"), MessageType.ERROR).notify(myProject); } return false; }