}
private void savePattern() {
String pattern = patternFld.getText();
if (isValidPattern(pattern)) {
FilePattern fp = new FilePattern(pattern, module);
if (!FilePatterns.exists(fp)) {
FilePatterns.add(fp);
cbPatterns.addItem(fp);
checkPatternButtonStatus();
}