void (PsiDeclarationStatement declarationStatement) { if (declarationStatement.getDeclaredElements().length > 0) { PsiElement declaredElement = declarationStatement.getDeclaredElements()[0]; if (declaredElement instanceof PsiLocalVariable) { invokeOnVariable((PsiLocalVariable) declaredElement); } } }