private static PsiElement[] copyElements(PsiElement @NotNull [] pattern) {
    Project project = pattern[0].getProject();
    return IntroduceParameterHandler.getElementsInCopy(project, pattern[0].getContainingFile(), pattern, false);
  }
private static PsiElement[] copyElements(PsiElement @NotNull [] pattern)