blob: 23a7e6b89cee5ab0ecd79de054ccdec3106eeb0a [file] [log] [blame]
package com.intellij.openapi.vcs.roots;
import com.intellij.openapi.vcs.VcsRoot;
import com.intellij.openapi.vfs.VirtualFile;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.Collection;
/**
* Interface for detecting VCS roots in the project.
*
* @author Nadya Zabrodina
*/
public interface VcsRootDetector {
/**
* Detect vcs roots for whole project
*/
@NotNull
Collection<VcsRoot> detect();
/**
* Detect vcs roots for startDir
*/
@NotNull
Collection<VcsRoot> detect(@Nullable VirtualFile startDir);
}