boolean (PsiDeclarationStatement context) { if (context.getDeclaredElements().length <= 0) { return false; } PsiElement declaredElement = context.getDeclaredElements()[0]; if (!(declaredElement instanceof PsiLocalVariable)) { return false; } return isAvailableOnVariable((PsiLocalVariable) declaredElement); }