void (CompileContext context, Collection<? extends BuildTarget<?>> targets) { synchronized (TARGET_WITH_CLEARED_OUTPUT) { Set<BuildTarget<?>> data = context.getUserData(TARGET_WITH_CLEARED_OUTPUT); if (data == null) { data = new HashSet<>(); context.putUserData(TARGET_WITH_CLEARED_OUTPUT, data); } data.addAll(targets); } }