boolean (@NotNull final PsiElement element) { if (!(element instanceof PropertiesFile)) return false; String baseName = ResourceBundleManager.getInstance(element.getProject()).getFullName((PropertiesFile)element); if (baseName == null) return false; baseName = baseName.replace('.', '/'); final String rangeText = getRangeText(); return rangeText.equals(baseName); }