private static void replaceReferences(List<PsiReferenceExpression> references, PsiElement newExpression) throws IncorrectOperationException {
    for (PsiReferenceExpression reference : references) {
      reference.replace(newExpression);
    }
  }
private static void replaceReferences(List<PsiReferenceExpression> references, PsiElement newExpression)