boolean (@NotNull VirtualFile file) { if (file.isDirectory()) { return false; } CharSequence fileName = file.getNameSequence(); FileType originalFileType = FileTypeManager.getInstance().getFileTypeByFileName(fileName); return isTypeShouldBeReplacedByTextMateType(originalFileType) && TextMateService.getInstance().getLanguageDescriptorByFileName(fileName) != null; }