PsiElement (@NotNull final Property property) { PsiElement prev = property; for (PsiElement node = property.getPrevSibling(); node != null; node = node.getPrevSibling()) { if (node instanceof Property) break; if (node instanceof PsiWhiteSpace) { if (PROPERTIES_SEPARATOR.matcher(node.getText()).find()) break; } prev = node; } return prev; }