void (ProjectStructureElement element) { removeErrors(myErrors.removeAll(element)); final ProjectStructureProblemsHolderImpl problemsHolder = myAnalyzer.getProblemsHolder(element); if (problemsHolder != null) { final List<ProjectStructureProblemDescription> descriptions = problemsHolder.getProblemDescriptions(); if (descriptions != null) { for (ProjectStructureProblemDescription description : descriptions) { final ProjectConfigurationProblem error = new ProjectConfigurationProblem(description, myContext.getProject()); myErrors.put(element, error); ConfigurationErrors.Bus.addError(error, myContext.getProject()); } } } }