PropertiesFile () { Object selectedItem = myPropertiesFile.getSelectedItem(); if (selectedItem == null) return null; String path = FileUtil.toSystemIndependentName((String)selectedItem); VirtualFile virtualFile = LocalFileSystem.getInstance().findFileByPath(path); return virtualFile != null ? PropertiesImplUtil.getPropertiesFile(PsiManager.getInstance(myProject).findFile(virtualFile)) : null; }