public void registerDetectors(final FacetDetectorRegistry<ClojureFacetConfiguration> registry) {
FacetDetector<VirtualFile, ClojureFacetConfiguration> detector = new ClojureFacetDetector();
final Ref<Boolean> alreadyDetected = new Ref<Boolean>(false);
VirtualFileFilter filter = new VirtualFileFilter() {
public boolean accept(VirtualFile virtualFile) {
if (alreadyDetected.get()) return true;
alreadyDetected.set(true);
if (ClojureFileType.CLOJURE_DEFAULT_EXTENSION.equals(virtualFile.getExtension())) {
registry.customizeDetectedFacetPresentation(new ClojureFacetPresentation());