boolean (PsiElement context, String guard) { final PsiMember member = PsiTreeUtil.getParentOfType(context, PsiMember.class); if (member == null) { return false; } return guard.equals(JCiPUtil.findGuardForMember(member)); }