PsiElement (@NotNull PsiElement statement) { final PsiElement parent = statement.getParent(); if (parent instanceof PsiForStatement && ((PsiForStatement)parent).getInitialization() == statement) { return parent; } return null; }