GrMember (@Nullable PsiElement place, @Nullable PsiElement scope) { while (place != null && place != scope) { place = place.getParent(); if (place instanceof GrMember) return (GrMember)place; } return null; }