void (@NotNull CharSequence fileName) { ThreadingAssertions.assertEventDispatchThread(); myPendingInitializationLock.writeLock().lock(); try { makeFileTypesChange("removePlainTextAssociationsForFile("+fileName+")", () -> myPatternsTable.removeAssociationsForFile(fileName, FileTypeWithDescriptor.allFor(PlainTextFileType.INSTANCE))); } finally { myPendingInitializationLock.writeLock().unlock(); } }