private static void rebuildElements(Project project, PsiClass psiClass, List<? super PsiElement> psiElements) {
    for (Object psiElement : psiElements) {
      final PsiElement element = rebuildPsiElement(project, (PsiElement)psiElement);
      if (null != element) {
        psiClass.add(element);
      }
    }
  }
private static void rebuildElements(Project project, PsiClass psiClass, List<? super PsiElement> psiElements)