private void collect(@NotNull List<? super UsageInfo> usages, boolean nullable) {
    final List<SmartPsiElementPointer<? extends PsiModifierListOwner>> set = nullable ? myNullableSet : myNotNullSet;
    for (SmartPsiElementPointer<? extends PsiModifierListOwner> elementPointer : set) {
      ReadAction.run(() -> {
        PsiModifierListOwner element = elementPointer.getElement();
        if (element != null && !shouldIgnore(element)) {
          usages.add(nullable ? new NullableUsageInfo(element) : new NotNullUsageInfo(element));
        }
      });
    }
  }
private void collect(@NotNull List<? super UsageInfo> usages, boolean nullable)