private static boolean isLocalVariable(GrVariable var, boolean parametersAllowed) {
    return !(var instanceof GrField || var instanceof GrParameter && !parametersAllowed);
  }
private static boolean isLocalVariable(GrVariable var, boolean parametersAllowed)