public void addProblem(Problem problem) {
        removeIf(someProblem -> someProblem.type.equals(problem.type));
        this.add(problem);
    }
@Test
    void testAddProblem() {
        problems.addProblem(new CpuAllocationIrregularityProblem(new ArrayList<>()));
        problems.addProblem(new CpuAllocationIrregularityProblem(new ArrayList<>()));

        assertThat(problems).hasSize(1);
    }