List<Task> (@Nullable String query, int offset, int limit, final boolean withClosed, @NotNull ProgressIndicator indicator, boolean forceRequest) { List<Task> tasks = getIssuesFromRepositories(query, offset, limit, withClosed, forceRequest, indicator); if (tasks == null) { return getCachedIssues(withClosed); } myIssueCache.putAll(ContainerUtil.newMapFromValues(tasks.iterator(), KEY_CONVERTOR)); return ContainerUtil.filter(tasks, task -> withClosed || !task.isClosed()); }