public boolean removeByPhase(@Nonnull ProblemPhase phase) {
		boolean updated;
		synchronized (problems) {updated = problems.values().removeIf(list -> list.removeIf(p -> p.phase() == phase));}
		if (updated)
			Unchecked.checkedForEach(listeners, ProblemInvalidationListener::onProblemInvalidation,
					(listener, t) -> logger.error("Exception thrown when removing problems from tracking", t));
		return updated;
	}
@param phase
		The phase to remove problems of.

@return {@code true} when one or more problems matching the phase were removed.
recaf-ui/src/main/java/software/coley/recaf/ui/control/richtext/problem/ProblemTracking.java