ScopeType (FindModel model) { if (model.isCustomScope()) { return SCOPE; } if (model.isProjectScope()) { return PROJECT; } if (model.getDirectoryName() != null) { return DIRECTORY; } if (model.getModuleName() != null) { return MODULE; } return PROJECT; }