void (PsiFile psiFile) { VirtualFile file = psiFile.getVirtualFile(); if (file != null) { Document document = FileDocumentManager.getInstance().getDocument(file); if (document != null) { stripHighlightingData(document); } } }