void () { long documentStamp = myDocument.getModificationStamp(); if (documentStamp == myDocumentStamp) return; myDocumentStamp = documentStamp; myHighlighter.setText(myDocument.getImmutableCharSequence()); myCurrentMethodSeparator = 0; if (myProject != null) { PsiFile psiFile = PsiDocumentManager.getInstance(myProject).getPsiFile(myDocument); myMethodSeparators = psiFile == null ? Collections.emptyList() : FileSeparatorProvider.getFileSeparators(psiFile, myDocument); } }