public static boolean isElementWithName(@NotNull final Collection<? extends PyElement> elements,
                                          final FQNamesProvider @NotNull ... namesProviders) {
    for (final PyElement element : elements) {
      if (isName(element, namesProviders)) {
        return true;
      }
    }
    return false;
  }
public static boolean isElementWithName(@NotNull final Collection<? extends PyElement> elements,
                                          final FQNamesProvider @NotNull ... namesProviders)