int n = experiment.getSocietyComponentCount(); for (int i = 0; i < n; i++) { SocietyComponent societyComponent = experiment.getSocietyComponent(i);
SocietyComponent societyComponent = experiment.getSocietyComponent(); if (societyComponent != null) {
    public boolean accept(File f) {      if (f.isDirectory())	return true; // allow user to go up/down through directory tree      int n = experiment.getSocietyComponentCount();      for (int i = 0; i < n; i++) {	SocietyComponent societyComponent = experiment.getSocietyComponent(i);	java.io.FileFilter fileFilter = societyComponent.getResultFileFilter();	if (fileFilter == null)	  continue;	if (fileFilter.accept(f))	  return true;      }      int m = experiment.getRecipeCount();      for (int i = 0; i < m; i++) {	RecipeComponent recipeComponent = experiment.getRecipe(i);        if (recipeComponent instanceof MetricComponent) {          MetricComponent metricComponent = (MetricComponent) recipeComponent;          java.io.FileFilter fileFilter = metricComponent.getResultFileFilter();          if (fileFilter == null)            continue;          if (fileFilter.accept(f))            return true;        }      }      return false;    }