public int getHeaderEndOffset() {
return offsets.getHeaderEndOffset();
}
public void navigateTo(DBObject object) {
PsiFile file = PsiUtil.getPsiFile(getObject().getProject(), getVirtualFile());
if (file instanceof PSQLFile) {
PSQLFile psqlFile = (PSQLFile) file;
BasePsiElement navigable = psqlFile.lookupObjectDeclaration(object.getObjectType(), object.getName());
if (navigable == null) navigable = psqlFile.lookupObjectSpecification(object.getObjectType(), object.getName());
if (navigable != null) navigable.navigate(true);