boolean (@NotNull PsiElement element) { if (element instanceof PsiParameter) { PsiElement declarationScope = ((PsiParameter)element).getDeclarationScope(); if (declarationScope instanceof PsiMethod && !((PsiMethod)declarationScope).hasModifierProperty(PsiModifier.STATIC)) { return true; } } return false; }