if(!isOK) return null;  if(current.getModel().isSelected()) return new CurrentBufferSet(); else if(all.getModel().isSelected()) return new AllBufferSet(); else if(selected.getModel().isSelected()) { Object[] values = bufferList.getSelectedValues(); if(values == null || values.length == 0) return new CurrentBufferSet(); else return new BufferListSet(values); } else if(directory.getModel().isSelected()) { String _directory = directoryPath.getText(); String _glob = (String)directoryGlob.getSelectedItem(); boolean _recurse = directoryRecurse.getModel() .isSelected();  jEdit.setProperty("multifile.directory.path.value",_directory); jEdit.setProperty("multifile.directory.glob.value",_glob); jEdit.setBooleanProperty("multifile.directory.recurse.value",_recurse);  return new DirectoryListSet(_directory,_glob,_recurse); }
if(isOK) return fileset;
	public SearchFileSet getSearchFileSet()	{		if(!isOK)			return null;		if(current.getModel().isSelected())			return new CurrentBufferSet();		else if(all.getModel().isSelected())			return new AllBufferSet();		else if(selected.getModel().isSelected())		{			Object[] values = bufferList.getSelectedValues();			if(values == null || values.length == 0)				return new CurrentBufferSet();			else				return new BufferListSet(values);		}		else if(directory.getModel().isSelected())		{			String _directory = directoryPath.getText();			String _glob = (String)directoryGlob.getSelectedItem();			boolean _recurse = directoryRecurse.getModel()				.isSelected();			jEdit.setProperty("multifile.directory.path.value",_directory);			jEdit.setProperty("multifile.directory.glob.value",_glob);			jEdit.setBooleanProperty("multifile.directory.recurse.value",_recurse);			return new DirectoryListSet(_directory,_glob,_recurse);		}		else			return null;	}