NonCodeUsageSearchInfo (@NotNull final PsiElement element, final PsiElement @NotNull [] allElementsToDelete, final @NotNull List<? super UsageInfo> result) { PropertiesFile file = (PropertiesFile) element; List<PsiElement> elements = new ArrayList<>(); elements.add(file.getContainingFile()); for (IProperty property : file.getProperties()) { elements.add(property.getPsiElement()); } for(PsiElement psiElement: elements) { SafeDeleteProcessor.findGenericElementUsages(psiElement, result, allElementsToDelete, GlobalSearchScope.projectScope(element.getProject())); } return new NonCodeUsageSearchInfo(SafeDeleteProcessor.getDefaultInsideDeletedCondition(allElementsToDelete), elements); }