boolean (@NotNull PsiVariable psiVariable) { if (psiVariable instanceof PsiLocalVariable) { return isVar((PsiLocalVariable) psiVariable); } if (!(psiVariable instanceof PsiParameter psiParameter)) { return false; } PsiTypeElement typeElement = psiParameter.getTypeElement(); if (typeElement == null) { return false; } return isPossibleVar(typeElement.getText()) && isVar(resolveQualifiedName(typeElement)); }