ProjectStructureProblemsSettings (Project project, ProjectStructureProblemDescription.ProblemLevel problemLevel) { if (problemLevel == ProjectStructureProblemDescription.ProblemLevel.PROJECT) { return ProjectStructureProblemsSettings.getProjectInstance(project); } else { return ProjectStructureProblemsSettings.getGlobalInstance(); } }