diff --git a/platform/lang-impl/src/com/intellij/openapi/file/exclude/EnforcedPlainTextFileTypeManager.java b/platform/lang-impl/src/com/intellij/openapi/file/exclude/EnforcedPlainTextFileTypeManager.java index 9526e0c597f9..40d4640133aa 100644 --- a/platform/lang-impl/src/com/intellij/openapi/file/exclude/EnforcedPlainTextFileTypeManager.java +++ b/platform/lang-impl/src/com/intellij/openapi/file/exclude/EnforcedPlainTextFileTypeManager.java @@ -58,8 +58,7 @@ public class EnforcedPlainTextFileTypeManager implements ProjectManagerListener } } } - for (Project project : myPlainTextFileSets.keySet()) { - Collection projectSet = myPlainTextFileSets.get(project); + for (Collection projectSet : myPlainTextFileSets.values()) { if (projectSet != null && projectSet.contains(file)) return true; } return false;