public boolean hasVariable() {
      if (myValueReference == null) return false;
      PsiVariable var = extractDeclaration();
      // has variable, but it used only in condition
      return var == null || VariableAccessUtils.getVariableReferences(var).size() != 1;
    }
public boolean hasVariable()