private boolean importsRequired(UsageInfo @NotNull [] usages, final PyFile targetFile) {
    return ContainerUtil.exists(usages, info -> {
      final PsiElement element = info.getElement();
      if (element == null) {
        return false;
      }
      return !belongsToFunction(element) && info.getFile() != targetFile;
    });
  }
private boolean importsRequired(UsageInfo @NotNull [] usages, final PyFile targetFile)