@Nullable
  public static PsiElement getElement(@NotNull DataContext dataContext) {
    PsiElement[] elementArray = CommonRefactoringUtil.getPsiElementArray(dataContext);

    if (elementArray.length != 1) {
      return null;
    }
    return elementArray[0];
  }
@Nullable
  public static PsiElement getElement(@NotNull DataContext dataContext)