void (@NotNull FileTypeWithDescriptor ftd, @NotNull FileNameMatcher matcher, boolean fireChange) { if (myPatternsTable.isAssociatedWith(ftd, matcher)) { Runnable command = () -> myPatternsTable.removeAssociation(matcher, ftd); if (fireChange) { makeFileTypesChange("file type '" + ftd.fileType + "' association with '" + matcher + "' has been removed", command); } else { command.run(); } } }