class KotlinHardcodePasswordInMapDetector extends AbstractHardcodePasswordInMapDetector {

    private static final String KOTLIN_HARD_CODE_PASSWORD_IN_MAP_TYPE = "HARD_CODE_PASSWORD";

    private static final InvokeMatcherBuilder TUPLEKT_TO = invokeInstruction().atMethod("to")
            .withArgs("(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;");

    public KotlinHardcodePasswordInMapDetector(BugReporter bugReporter) {
        super(bugReporter);
    }

    @Override
    protected InjectionPoint getInjectionPoint(InvokeInstruction invoke, ConstantPoolGen cpg,
                                               InstructionHandle handle) {<FILL_FUNCTION_BODY>}
}

        assert invoke != null && cpg != null;

        if (TUPLEKT_TO.matches(invoke, cpg)) {
            return new InjectionPoint(new int[]{0}, KOTLIN_HARD_CODE_PASSWORD_IN_MAP_TYPE);
        }
        return InjectionPoint.NONE;
    
<methods>public void <init>(BugReporter) <variables>private static List<java.lang.String> PASSWORD_WORDS