def METHOD_NAME(self, widget):
    """
    Takes a QWidget that can be modified and must be returned.
    """
    # Add group
    group = self.addGroup(widget.toolBox.widget(0),
                          safeTranslate(qApp, "Import", "Folder import"))
    #group = cls.addPage(widget, "Folder import")
    self.addSetting("info", "label",
                    safeTranslate(qApp, "Import", """<p><b>Info:</b> Imports a whole
                    directory structure. Folders are added as folders, and
                    plaintext documents within (you chose which ones by extension)
                    are added as scene.</p>
                    <p>Only text files are supported (not images, binary or others).</p>"""))
    self.addSetting("ext", "text",
                    safeTranslate(qApp, "Import", "Include only those extensions:"),
                    default="*.txt, *.md",
                    tooltip=safeTranslate(qApp, "Import", "Comma separated values")),
    self.addSetting("sortItems", "checkbox",
                    safeTranslate(qApp, "Import", "Sort items by name"),
                    default=True),
    self.addSetting("separateFolderFiles", "checkbox",
                    safeTranslate(qApp, "Import", "Import folder then files"),
                    default=True),
    self.addSettingsTo(group)
    return widget