boolean () { VirtualFile file = fileEditor == null ? null : fileEditor.getFile(); PsiFile psiFile = file == null || !file.isValid() ? null : PsiManager.getInstance(project).findFile(file); Set<Language> newLanguages = getLanguages(psiFile).toSet(); // think views count depends only on acceptable languages return !Comparing.equal(myLanguageToBuilderMap.keySet(), newLanguages); }