private static boolean isVariableToExtract(Symbol symbol) {
   String name = symbol.name();
   return !symbol.isEnum()
       && symbol.isVariableSymbol()
       && !"this".equals(name)
       && !"super".equals(name);
 }
 private static int getDeclarationLine(Symbol symbol) {
   if (symbol.isVariableSymbol()) {
     return ((Symbol.VariableSymbol) symbol).declaration().simpleName().identifierToken().line();
   }
   return ((Symbol.MethodSymbol) symbol).declaration().simpleName().identifierToken().line();
 }
 private static boolean variableAndMethod(Symbol s1, Symbol s2) {
   return s1.isVariableSymbol() && s2.isMethodSymbol();
 }