private static QueryUpdateInfo getCollectionQueryUpdateInfo(@NotNull PsiLocalVariable variable,
                                                              Set<String> updateNames,
                                                              Set<String> queryNames,
                                                              Set<String> ignoredClasses,
                                                              Set<PsiReferenceExpression> ignored) {
    final PsiCodeBlock codeBlock = PsiTreeUtil.getParentOfType(variable, PsiCodeBlock.class);
    if (!checkVariable(variable, codeBlock, ignoredClasses)) {
      return null;
    }
    return getCollectionQueryUpdateInfo(variable, codeBlock, queryNames, updateNames, ignored);
  }
private static QueryUpdateInfo getCollectionQueryUpdateInfo(@NotNull PsiLocalVariable variable,
                                                              Set<String> updateNames,
                                                              Set<String> queryNames,
                                                              Set<String> ignoredClasses,
                                                              Set<PsiReferenceExpression> ignored)