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