boolean (String line) { if (getCustomFilter() != null) { final Pattern pattern = getCustomPattern(); if (pattern != null && !pattern.matcher(StringUtil.toUpperCase(line)).matches()) return false; } return true; }