in plugin/src/main/java/com/attachme/plugin/AttachmeDebugger.java [24:29]
public static void attach(Project project, RemoteConnection con, Integer pid) {
RunnerAndConfigurationSettings runSettings =
RunManager.getInstance(project).createConfiguration("Attachme pid: " + pid, ProcessAttachRunConfigurationType.FACTORY);
((ProcessAttachRunConfiguration) runSettings.getConfiguration()).connection = con;
ProgramRunnerUtil.executeConfiguration(runSettings, new ProcessAttachDebugExecutor());
}