CustomResourceBundle (final @NotNull PropertiesFile file) { final VirtualFile virtualFile = file.getVirtualFile(); if (virtualFile == null) { return null; } final CustomResourceBundleState state = getCustomResourceBundleState(virtualFile); return state == null ? null : CustomResourceBundle.fromState(state, file.getProject()); }