private static Set<BuildTarget<?>> getTargetsWithClearedOutput(CompileContext context) {
    synchronized (TARGET_WITH_CLEARED_OUTPUT) {
      Set<BuildTarget<?>> data = context.getUserData(TARGET_WITH_CLEARED_OUTPUT);
      return data != null ? Set.copyOf(data) : Collections.emptySet();
    }
  }
private static Set<BuildTarget<?>> getTargetsWithClearedOutput(CompileContext context)