void (@NotNull Element element) { String multiLineText = element.getChildText(ELEMENT_MULTILINE); myMultiLine = multiLineText == null || Boolean.parseBoolean(multiLineText); List<TodoPattern> patternsList = new SmartList<>(); for (Element child : element.getChildren(ELEMENT_PATTERN)) { patternsList.add(new TodoPattern(child, TodoAttributesUtil.getDefaultColorSchemeTextAttributes())); } TodoPattern[] patterns = patternsList.isEmpty() ? getDefaultPatterns() : patternsList.toArray(new TodoPattern[0]); doSetTodoPatterns(patterns, false); List<TodoFilter> filtersList = new SmartList<>(); for (Element child : element.getChildren(ELEMENT_FILTER)) { filtersList.add(new TodoFilter(child, Arrays.asList(patterns))); } if (!(filtersList.isEmpty() && myTodoFilters.length == 0)) { setTodoFilters(filtersList.toArray(new TodoFilter[0])); } }