public void removeProblemsOfType(String type) {
        removeIf(problem -> type.equals(problem.type));
    }
@Test
    void testRemoveProblemsOfType() {
        problems.addProblem(new CpuAllocationIrregularityProblem(new ArrayList<>()));
        assertThat(problems).hasSize(1);

        problems.removeProblemsOfType(CpuAllocationIrregularityProblem.PROBLEM_TYPE);

        assertThat(problems).isEmpty();
    }