Code review comment: Can use ```suggestion             MinutiaeList leadingMinutiae = NodeFactory.createEmptyMinutiaeList(); ```

Code under review:
public List<CodeAction> getNodeBasedCodeActions(CodeActionContext context) {
        List<CodeAction> actions = new ArrayList<>();
        String uri = context.fileUri();
        SyntaxTree syntaxTree = context.workspace().syntaxTree(context.filePath()).orElseThrow();
        NodeList<ImportDeclarationNode> fileImports = ((ModulePartNode) syntaxTree.rootNode()).imports();

        if (fileImports == null || fileImports.isEmpty()) {
            return actions;
        }

        List<String[]> toBeRemovedImports = extractImportsToBeRemoved(context.allDiagnostics());

        
        if (fileImports.size() <= 1 && toBeRemovedImports.size() == 0) {
            return actions;
        }

        
        int importSLine = fileImports.get(0).lineRange().startLine().line();
        List<Range> importLines = new ArrayList<>();
        for (int i = 0; i < fileImports.size(); i++) {
            ImportDeclarationNode importPkg = fileImports.get(i);
            LineRange pos = importPkg.lineRange();
            CodeActionModuleId importModel = CodeActionModuleId.from(importPkg);

            
            if (importSLine > pos.startLine().line()) {
                importSLine = pos.startLine().line();
            }

            
            importLines.add(CommonUtil.toRange(pos));

            
            boolean rmMatched = toBeRemovedImports.stream()
                    .anyMatch(rmImport -> rmImport[0].equals(importModel.orgName() + importModel.moduleName()) &&
                            rmImport[1].equals(importModel.version()) && rmImport[2].equals(importModel.modulePrefix())
                    );
            if (rmMatched) {
                fileImports = fileImports.remove(i);
                i--;
            }
        }

        
        StringJoiner editText = new StringJoiner("");
        sortImports(fileImports).forEach(importNode -> {
            MinutiaeList leadingMinutiae = NodeFactory.createMinutiaeList(new ArrayList<>());
            MinutiaeList trailingMinutiae = importNode.importKeyword().trailingMinutiae();
            Token modifiedImportKeyword = importNode.importKeyword().modify(leadingMinutiae, trailingMinutiae);

            ImportDeclarationNode.ImportDeclarationNodeModifier importModifier = importNode.modify();
            importModifier.withImportKeyword(modifiedImportKeyword);
            if (importNode.orgName().isPresent()) {
                importModifier.withOrgName(importNode.orgName().get());
            }
            importModifier.withModuleName(importNode.moduleName());
            if (importNode.prefix().isPresent()) {
                importModifier.withPrefix(importNode.prefix().get());
            }
            importNode.semicolon();
            importModifier.withSemicolon(importNode.semicolon());

            editText.add(importModifier.apply().toSourceCode());
        });

        Position position = new Position(importSLine, 0);
        List<TextEdit> edits = getImportsRemovalTextEdits(importLines);
        edits.add(new TextEdit(new Range(position, position), editText.toString()));
        actions.add(createQuickFixCodeAction(CommandConstants.OPTIMIZE_IMPORTS_TITLE, edits, uri));
        return actions;
    }

Line commented on: MinutiaeList leadingMinutiae = NodeFactory.createMinutiaeList(new ArrayList<>());

Revised code:
public List<CodeAction> getNodeBasedCodeActions(CodeActionContext context) {
        List<CodeAction> actions = new ArrayList<>();
        String uri = context.fileUri();
        SyntaxTree syntaxTree = context.workspace().syntaxTree(context.filePath()).orElseThrow();
        NodeList<ImportDeclarationNode> fileImports = ((ModulePartNode) syntaxTree.rootNode()).imports();

        if (fileImports == null || fileImports.isEmpty()) {
            return actions;
        }

        List<String[]> toBeRemovedImports = extractImportsToBeRemoved(context.allDiagnostics());

        
        if (fileImports.size() <= 1 && toBeRemovedImports.size() == 0) {
            return actions;
        }

        
        int importSLine = fileImports.get(0).lineRange().startLine().line();
        List<Range> importLines = new ArrayList<>();
        for (int i = 0; i < fileImports.size(); i++) {
            ImportDeclarationNode importPkg = fileImports.get(i);
            LineRange pos = importPkg.lineRange();
            CodeActionModuleId importModel = CodeActionModuleId.from(importPkg);

            
            if (importSLine > pos.startLine().line()) {
                importSLine = pos.startLine().line();
            }

            
            importLines.add(CommonUtil.toRange(pos));

            
            boolean rmMatched = toBeRemovedImports.stream()
                    .anyMatch(rmImport -> rmImport[0].equals(importModel.orgName() + importModel.moduleName()) &&
                            rmImport[1].equals(importModel.version()) && rmImport[2].equals(importModel.modulePrefix())
                    );
            if (rmMatched) {
                fileImports = fileImports.remove(i);
                i--;
            }
        }

        
        StringJoiner editText = new StringJoiner("");
        sortImports(fileImports).forEach(importNode -> {
            MinutiaeList leadingMinutiae = NodeFactory.createEmptyMinutiaeList();
            MinutiaeList trailingMinutiae = importNode.importKeyword().trailingMinutiae();
            Token modifiedImportKeyword = importNode.importKeyword().modify(leadingMinutiae, trailingMinutiae);

            ImportDeclarationNode.ImportDeclarationNodeModifier importModifier = importNode.modify();
            importModifier.withImportKeyword(modifiedImportKeyword);
            if (importNode.orgName().isPresent()) {
                importModifier.withOrgName(importNode.orgName().get());
            }
            importModifier.withModuleName(importNode.moduleName());
            if (importNode.prefix().isPresent()) {
                importModifier.withPrefix(importNode.prefix().get());
            }
            importNode.semicolon();
            importModifier.withSemicolon(importNode.semicolon());

            editText.add(importModifier.apply().toSourceCode());
        });

        Position position = new Position(importSLine, 0);
        List<TextEdit> edits = getImportsRemovalTextEdits(importLines);
        edits.add(new TextEdit(new Range(position, position), editText.toString()));
        actions.add(createQuickFixCodeAction(CommandConstants.OPTIMIZE_IMPORTS_TITLE, edits, uri));
        return actions;
    }