private static List<Task> getTasks(String pattern, boolean cached, boolean autopopup, final TaskManager myManager) {
    return cached ? myManager.getCachedIssues() : myManager.getIssues(pattern, !autopopup);
  }
private static List<Task> getTasks(String pattern, boolean cached, boolean autopopup, final TaskManager myManager)