boolean ( @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); }