ValidationInfo () { if (content.nameField.getText().trim().isEmpty()) { return new ValidationInfo(ToolsBundle.message("dialog.message.specify.the.tool.name"), content.nameField); } for (String s : OUTPUT_FILTERS_SPLITTER.fun(content.outputFilterField.getText())) { if (!s.contains(RegexpFilter.FILE_PATH_MACROS)) { return new ValidationInfo( ToolsBundle.message("dialog.message.each.output.filter.must.contain.0.macro", RegexpFilter.FILE_PATH_MACROS), content.outputFilterField); } } return null; }