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