boolean (final Object element, final VirtualFile vFile) { if (element instanceof ResourceBundle bundle) { final List<PropertiesFile> propertiesFiles = bundle.getPropertiesFiles(); for (PropertiesFile file : propertiesFiles) { final VirtualFile virtualFile = file.getVirtualFile(); if (virtualFile == null) continue; if (vFile.getPath().equals(virtualFile.getPath())) { return true; } } } return false; }