@Override
  public void invoke(@NotNull Project project, Editor editor, @NotNull PsiElement element) throws IncorrectOperationException {
    final PsiField field = getField(element);
    if (field == null) return;
    DataContext dataContext = DataManager.getInstance().getDataContext(editor.getComponent());
    JavaRefactoringActionHandlerFactory.getInstance().createEncapsulateFieldsHandler().invoke(project, new PsiElement[]{field}, dataContext);
  }
@Override
  public void invoke(@NotNull Project project, Editor editor, @NotNull PsiElement element)