List<DomElementProblemDescriptor> (@NotNull DomElementsInspection inspection) { if (!myElement.isValid()) { return Collections.emptyList(); } final List<DomElementProblemDescriptor> list = getProblemsMap(myElement).get(inspection.getClass()); return list != null ? new ArrayList<>(list) : Collections.emptyList(); }