if (parent instanceof GoConstDeclaration) {
GoPsiType identifiersType = ((GoConstDeclaration) parent).getIdentifiersType();
if (identifiersType != null)
return identifiersType;
GoConstDeclarations parentDec = (GoConstDeclarations) parent.getParent();
for (GoConstDeclaration declaration : parentDec.getDeclarations()) {
identifiersType = declaration.getIdentifiersType();
if (identifiersType != null)
return identifiersType;
}
return (GoPsiElement) parent.getLastChild();