void (@NotNull PsiFile file, @NotNull DependencyProcessor processor, @NotNull DependencyVisitorFactory.VisitorOptions options) { Boolean prev = file.getUserData(PsiFileEx.BATCH_REFERENCE_PROCESSING); file.putUserData(PsiFileEx.BATCH_REFERENCE_PROCESSING, Boolean.TRUE); try { file.accept(DependencyVisitorFactory.createVisitor(file, processor, options)); } finally { file.putUserData(PsiFileEx.BATCH_REFERENCE_PROCESSING, prev); } }