List<GrField> (PsiElement element) { final GrMethod constructor = PsiTreeUtil.getParentOfType(element, GrMethod.class); if (constructor == null || !constructor.isConstructor()) return null; if (constructor.getBlock() == null) return null; if (PsiTreeUtil.isAncestor(constructor.getBlock(), element, false)) { return null; } final PsiClass clazz = constructor.getContainingClass(); if (!(clazz instanceof GrTypeDefinition)) return null; return findCandidatesCached(constructor, (GrTypeDefinition)clazz); }