public static boolean isOverrideOfLibraryMethodParameter(
    @Nullable PsiVariable variable) {
    if (!(variable instanceof PsiParameter parameter)) {
      return false;
    }
    final PsiElement scope = parameter.getDeclarationScope();
    if (!(scope instanceof PsiMethod method)) {
      return false;
    }
    return isOverrideOfLibraryMethod(method);
  }
public static boolean isOverrideOfLibraryMethodParameter(
    @Nullable PsiVariable variable)