void (String key, boolean updateSynchronously) { if (myFile != null) { FileType fileType = myFile.getFileType(); boolean needUpdate = (fileType.getName().equals(key) || (fileType instanceof LanguageFileType && ((LanguageFileType)fileType).getLanguage().getID().equals(key))); if (!needUpdate) return; } if (ApplicationManager.getApplication().isDispatchThread() && updateSynchronously) { updateHighlightersSynchronously(); } else { updateHighlighters(); } }