public static boolean isOwnScopeComprehension(@NotNull PyComprehensionElement comprehension) {
    final boolean isAtLeast30 = !LanguageLevel.forElement(comprehension).isPython2();
    final boolean isListComprehension = comprehension instanceof PyListCompExpression;
    return !isListComprehension || isAtLeast30;
  }
public static boolean isOwnScopeComprehension(@NotNull PyComprehensionElement comprehension)