private static List<Symbol> extractMembers(Symbol.TypeSymbol classSymbol, boolean ignorePrivate) {
   List<Symbol> results = Lists.newLinkedList();
   for (Symbol symbol : classSymbol.memberSymbols()) {
     if ((isVariableToExtract(symbol) || isMethodToExtract(symbol))
         && !(symbol.isPrivate() && ignorePrivate)) {
       results.add(symbol);
     }
   }
   return results;
 }
 public void checkIfUnused(VariableTree tree) {
   if (tree.modifiers().annotations().isEmpty()) {
     Symbol symbol = tree.symbol();
     String name = symbol.name();
     if (symbol.isPrivate()
         && !"serialVersionUID".equals(name)
         && symbol.usages().size() == assignments.get(symbol).size()) {
       addIssue(tree, "Remove this unused \"" + name + "\" private field.");
     }
   }
 }