boolean (@NotNull PsiElement element) { if (!(element instanceof PsiIdentifier)) { return false; } PsiElement parent = element.getParent(); if (!(parent instanceof PsiReferenceExpression)) { return false; } PsiElement qualifier = ((PsiReferenceExpression) parent).getQualifier(); if (qualifier == null) { return false; } PsiReference reference = qualifier.getReference(); if (reference == null) { return false; } PsiElement field = reference.resolve(); if (!(field instanceof PsiField)) { return false; } PsiClass containingClass = ((PsiField) field).getContainingClass(); if (containingClass == null) { return false; } return InitializationUtils.isInitializedInConstructors((PsiField) field, containingClass); }