boolean () { FileType fileType = myFile == null ? null : myFile.getFileType(); boolean isPermissiveDialect = false; if (fileType instanceof JsonFileType) { Language language = ((JsonFileType)fileType).getLanguage(); isPermissiveDialect = language instanceof JsonLanguage && ((JsonLanguage)language).hasPermissiveStrings(); } return isPermissiveDialect; }