void (@NotNull CodeStyleScheme scheme) { int copyToProjectConfirmation = MessageDialogBuilder.yesNo(ApplicationBundle.message("settings.editor.scheme.copy.to.project.title"), ApplicationBundle.message("settings.editor.scheme.copy.to.project.message", scheme.getName())) .show(); if (copyToProjectConfirmation == Messages.YES) { getModel().copyToProject(scheme); } }