if (file.getFileType().equals(PSQLFileType.INSTANCE)) {
if (file instanceof SourceCodeFile) {
SourceCodeFile sourceCodeFile = (SourceCodeFile) file;
DBContentType contentType = sourceCodeFile.getContentType();
if (contentType == DBContentType.CODE || contentType == DBContentType.CODE_BODY) {
Document document = DocumentUtil.getDocument(file);
int lineOffset = document.getLineStartOffset(line);
PsiFile psiFile = PsiUtil.getPsiFile(project, file);
PsiElement element = psiFile.findElementAt(lineOffset);
while (element != null && !(element instanceof BasePsiElement)) {
element = element.getNextSibling();
}
if (element != null) {
BasePsiElement basePsiElement = (BasePsiElement) element;
int elementLine = document.getLineNumber(basePsiElement.getTextOffset());
return elementLine == line;
}
/*if (element != null) {
BasePsiElement basePsiElement = (BasePsiElement) element;