PsiAssignmentExpression getAssignment(@NotNull ProblemDescriptor descriptor) {
    final PsiElement element = descriptor.getPsiElement();
    final PsiElement parent = element instanceof PsiReferenceExpression ? element.getParent() : element;
    return ObjectUtils.tryCast(parent, PsiAssignmentExpression.class);
  }
PsiAssignmentExpression getAssignment(@NotNull ProblemDescriptor descriptor)