void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { final PsiElement parent = element.getParent(); if (!(parent instanceof PsiIfStatement ifStatement)) { return; } final PsiExpression condition = ifStatement.getCondition(); if (condition == null) { return; } final PsiField field = findCheckedField(condition); if (field == null) { return; } final PsiModifierList modifierList = field.getModifierList(); if (modifierList == null) { return; } modifierList.setModifierProperty(PsiModifier.VOLATILE, true); }