}
private List<Source> getRuleSources(List<JqassistantPlugin> plugins) {
List<Source> sources = new ArrayList<>();
for (JqassistantPlugin plugin : plugins) {
RulesType rulesType = plugin.getRules();
if (rulesType != null) {
String directory = rulesType.getDirectory();
for (String resource : rulesType.getResource()) {
StringBuffer fullResource = new StringBuffer();
if (directory != null) {
fullResource.append(directory);
}
fullResource.append(resource);