void () { final MatchOptions matchOptions = myConfiguration.getMatchOptions(); int scripts = 0; for (String name : matchOptions.getVariableConstraintNames()) { final MatchVariableConstraint constraint = matchOptions.getVariableConstraint(name); if (constraint.getScriptCodeConstraint().length() > 2) scripts++; } final ReplaceOptions replaceOptions = myConfiguration.getReplaceOptions(); for (ReplacementVariableDefinition variableDefinition : replaceOptions.getVariableDefinitions()) { if (variableDefinition.getScriptCodeConstraint().length() > 2) scripts++; } if (scripts > 0) { NotificationGroupManager.getInstance() .getNotificationGroup(UIUtil.SSR_NOTIFICATION_GROUP_ID) .createNotification( SSRBundle.message("import.template.script.warning.title"), SSRBundle.message("import.template.script.warning", ApplicationNamesInfo.getInstance().getFullProductName(), scripts), NotificationType.WARNING ) .notify(myProject); } }