boolean (final ProjectStructureProblemType.Severity severity) { if (myProblemDescriptions != null) { for (ProjectStructureProblemDescription description : myProblemDescriptions) { if (description.getSeverity() == severity) { return true; } } } return false; }