boolean (final Collection modifiedFiles) { if (modifiedFiles.isEmpty()) return true; return Messages.showOkCancelDialog(createMessage(modifiedFiles), myActionName, createOverwriteButtonName(modifiedFiles), getCancelButtonText(), Messages.getWarningIcon()) == Messages.OK; }