code: private void extractFlags(GanttBarStyle style, GanttBarShowForTasks baseCriteria, long flagValue)
     {
        int index = 0;
        long flag = 0x0001;
  
        while (index < 64)
        {
           if ((flagValue & flag) != 0)
           {
              GanttBarShowForTasks enumValue = GanttBarShowForTasks.getInstance(baseCriteria.getValue() + index);
              if (enumValue != null)
              {
                 style.addShowForTasks(enumValue);
              }
           }
  
           flag = flag << 1;
  
           index++;
        }
     }
docs: Extract the flags indicating which task types this bar style
  is relevant for. Note that this work for the "normal" task types
  and the "negated" task types (e.g. Normal Task, Not Normal task).
  The set of values used is determined by the baseCriteria argument.
  
  @param style parent bar style
  @param baseCriteria determines if the normal or negated enums are used
  @param flagValue flag data