public static List<Task> filterTasks(final String pattern, final List<? extends Task> tasks) {
    final Matcher matcher = getMatcher(pattern);
    return ContainerUtil.mapNotNull(tasks,
                                    task -> matcher.matches(task.getPresentableId()) || matcher.matches(task.getSummary()) ? task : null);
  }
public static List<Task> filterTasks(final String pattern, final List<? extends Task> tasks)