CustomResourceBundleState (final @NotNull VirtualFile virtualFile) { if (myState.getCustomResourceBundles().isEmpty()) { return null; } final String url = virtualFile.getUrl(); for (CustomResourceBundleState customResourceBundleState : myState.getCustomResourceBundles()) { if (customResourceBundleState.getFileUrls().contains(url)) { return customResourceBundleState; } } return null; }