GroovyResourceRootDescriptor (@NotNull String rootId, @NotNull BuildRootIndex rootIndex) { List<GroovyResourceRootDescriptor> descriptors = rootIndex.getRootDescriptors(new File(rootId), Collections.singletonList((Type)getTargetType()), null); return ContainerUtil.getFirstItem(descriptors); }