private static boolean isInsideNewStyleTypeVarBound(@NotNull PsiElement element) {
    return PsiTreeUtil.getParentOfType(element, PyTypeParameter.class, true, PyTypeParameterListOwner.class) != null;
  }
private static boolean isInsideNewStyleTypeVarBound(@NotNull PsiElement element)