GradleResourceRootDescriptor (@NotNull String rootId, @NotNull BuildRootIndex rootIndex) { for (GradleResourceRootDescriptor descriptor : rootIndex.getTargetRoots(this, null)) { if (descriptor.getRootId().equals(rootId)) { return descriptor; } } return null; }