for (IDebugTarget debugTarget : debugTargets) {
IJavaDebugTarget jt = (IJavaDebugTarget) debugTarget
.getAdapter(IJavaDebugTarget.class);
if (jt != null) {
JDIDebugTarget target = (JDIDebugTarget) jt;
if (target.supportsHotCodeReplace()) {
addHotSwapTarget(target);
} else if (target.isAvailable()) {
addNonHotSwapTarget(target);
}
}