private PsiElementsValidityState computeValidityState() {
   final PsiElementsValidityState state = new PsiElementsValidityState();
   final PsiFile psiFile = getPsiFile();
   if (psiFile != null) {
     for (PsiElement psiElement : myValidator.getDependencies(psiFile)) {
       state.addDependency(psiElement);
     }
   }
   return state;
 }
 @Override
 public ValidityState createValidityState(final DataInput in) throws IOException {
   return PsiElementsValidityState.load(in);
 }