public static boolean isAttached() {
    if (!isDebugEnabled()) {
      return false;
    }
    if (!isDebugServer()) {
      return true;
    }
    Properties properties = ApplicationManager.getApplication().getService(DebugAttachDetector.class).myAgentProperties;
    // for now, return true if you can not detect
    if (properties == null) {
      return true;
    }
    return isAttached(properties);
  }
public static boolean isAttached()