IndexPattern[] patterns = IndexPatternUtil.getIndexPatterns();
todoScanningData = new TodoScanningData[patterns.length];
for (int i = 0; i < patterns.length; ++i) {
IndexPattern indexPattern = patterns[i];
Pattern pattern = indexPattern.getPattern();
if (pattern != null) {
todoScanningData [i] = new TodoScanningData(indexPattern, pattern.matcher(""));
}
}