void (@NotNull PsiLocalVariable variable) { super.visitLocalVariable(variable); final PsiCodeBlock codeBlock = PsiTreeUtil.getParentOfType(variable, PsiCodeBlock.class); BuilderType type = getType(variable); if (type == null) { return; } PsiExpression firstQualifier = getFirstQualifier(variable.getInitializer(), type); if (!checkVariable(variable, firstQualifier, codeBlock)) { return; } final boolean queried = isStringBuilderQueried(variable, codeBlock, type); final boolean updated = isStringBuilderUpdated(variable, firstQualifier, codeBlock, type); if (queried == updated) { return; } registerVariableError(variable, Boolean.valueOf(updated), variable.getType()); }