String UID = JOptionPane.showInputDialog("Plan Object UID: "); if (UID != null) { String agentName = JOptionPane.showInputDialog("Agent name: "); if (agentName != null) makeThreadGraph(UID, agentName, true);
String UID; String agentName; int limit; boolean isDown;         UID = JOptionPane.showInputDialog("Plan Object UID: "); if (UID == null) { return;
  private void makeThreadGraph() {    String UID = JOptionPane.showInputDialog("Plan Object UID: ");     if (UID != null) {      String agentName = JOptionPane.showInputDialog("Agent name: ");      if (agentName != null)	makeThreadGraph(UID, agentName, true); // default to down    }  }