boolean (@NotNull String line) { if (TodoConfiguration.getInstance().isMultiLine()) { for (TodoPattern todoPattern : TodoConfiguration.getInstance().getTodoPatterns()) { Pattern p = todoPattern.getPattern(); if (p != null && p.matcher(line.trim()).matches()) { return true; } } } return false; }