PsiMember (GdslMembersHolderConsumer consumer) { final PsiElement place = consumer.getPlace(); if (place == null) return null; final PsiMember member = PsiTreeUtil.getParentOfType(place, PsiMember.class, true); if (member instanceof PsiClass) return null; return member; }