StructureViewBuilder (@NotNull final PsiFile psiFile) { PropertiesFileImpl file = (PropertiesFileImpl)psiFile; String separator = PropertiesSeparatorManager.getInstance(file.getProject()).getSeparator(file.getResourceBundle()); return new StructureViewBuilder() { @Override @NotNull public StructureView createStructureView(FileEditor fileEditor, @NotNull Project project) { return new PropertiesFileStructureViewComponent(project, file, fileEditor, separator); } }; }