public static void deletePsiElement(final PsiElement[] elementsToDelete, final Project project) {
    deletePsiElement(elementsToDelete, project, true);
  }
public static void deletePsiElement(final PsiElement[] elementsToDelete, final Project project)