Property (@Nullable PsiElement source) { if (source == null) return null; if (source instanceof Property) return (Property)source; final PsiElement parent = source.getParent(); return parent instanceof Property ? (Property)parent : null; }