boolean ( GrIfStatement statement) { GrStatement innerThen = statement.getThenBranch(); innerThen = ControlFlowUtils.stripBraces(innerThen); if (!(innerThen instanceof GrAssignmentExpression assignmentExpression)) { return false; } final GrExpression lhs = assignmentExpression.getLValue(); if (!(lhs instanceof GrReferenceExpression referenceExpression)) { return false; } final PsiElement element = referenceExpression.resolve(); if (!(element instanceof PsiField field)) { return false; } return field.hasModifierProperty(PsiModifier.VOLATILE); }