private static boolean isUsedElsewhere(PsiLocalVariable variable) {
    for (PsiReferenceExpression reference : VariableAccessUtils.getVariableReferences(variable)) {
      if (!isIgnored(reference, false)) {
        return true;
      }
    }
    return false;
  }
private static boolean isUsedElsewhere(PsiLocalVariable variable)