public final void applyInformationToEditor() {
   if (!isValid()) return; // Document has changed.
   if (DumbService.getInstance(myProject).isDumb() && !(this instanceof DumbAware)) {
     Document document = getDocument();
     PsiFile file =
         document == null ? null : PsiDocumentManager.getInstance(myProject).getPsiFile(document);
     if (file != null) {
       ((DaemonCodeAnalyzerImpl) DaemonCodeAnalyzer.getInstance(myProject))
           .getFileStatusMap()
           .markFileUpToDate(file.getProject(), getDocument(), getId());
     }
     return;
   }
   doApplyInformationToEditor();
 }