PropertiesFile () { PsiFile containingFile = super.getContainingFile(); if (!(containingFile instanceof PropertiesFile)) { LOG.error("Unexpected file type of: " + containingFile.getName()); } return (PropertiesFile)containingFile; }