for (int i = 0; i < tasks.length; i++) if (! groupableTasks.contains (tasks[i])) return false; return true;
Task task2 = tasks[0];  if (groupableTasks.contains (task2)) return true;  if (specs.areGroupable (this, task2) && specs.areGroupable (task2, this)) { groupableTasks.add (task2); return true; }  return false;
  public boolean groupableWith (Task[] tasks) {	if (groupable)	  return true;	    for (int i = 0; i < tasks.length; i++)      if (! groupableTasks.contains (tasks[i]))        return false;    return true;  }