public boolean containsProblemOfType(String type) {
        return this.stream().anyMatch(problem -> type.equals(problem.type));
    }
@Test
    void testContainsProblemOfType() {
        problems.addProblem(new CpuAllocationIrregularityProblem(new ArrayList<>()));

        assertThat(problems.containsProblemOfType(CpuAllocationIrregularityProblem.PROBLEM_TYPE)).isTrue();
        assertThat(problems.containsProblemOfType(PollIntervalInSecondsTimeBoxIsTooSmallProblem.PROBLEM_TYPE)).isFalse();
    }