code: public static Map<CompilerConfiguration, Vector<TargetInfo>> getTargetsToBuildByConfiguration(
        final Map<String, TargetInfo> targets) {
      final Map<CompilerConfiguration, Vector<TargetInfo>> targetsByConfig = new HashMap<>();
      for (final TargetInfo target : targets.values()) {
        if (target.getRebuild()) {
          // FIXME: Types do not match between the key of targetsByConfig and the return value of target.getConfiguration
          Vector<TargetInfo> targetsForSameConfig = targetsByConfig.get(target.getConfiguration());
          if (targetsForSameConfig != null) {
            targetsForSameConfig.addElement(target);
          } else {
            targetsForSameConfig = new Vector<>();
            targetsForSameConfig.addElement(target);
            targetsByConfig.put((CompilerConfiguration) target.getConfiguration(), targetsForSameConfig);
          }
        }
      }
      return targetsByConfig;
    }
docs: Builds a Hashtable to targets needing to be rebuilt keyed by compiler
  configuration