protected static EncapsulateFieldsDialog createDialog(@Nullable Project project,
                                                        @NotNull PsiClass aClass,
                                                        @NotNull Set<PsiField> preselectedFields) {
    EncapsulateFieldsDialog.EncapsulateFieldsContainer container = prepare(aClass, preselectedFields);
    return getDialog(project, container);
  }
protected static EncapsulateFieldsDialog createDialog(@Nullable Project project,
                                                        @NotNull PsiClass aClass,
                                                        @NotNull Set<PsiField> preselectedFields)