int currLine= fTextBuffer.getLineOfOffset(elem.getStartPosition()); int lastLine= fTextBuffer.getLineOfOffset(last.getStartPosition() + last.getLength()); return currLine - lastLine - 1;
return countEmptyLines(last);
		private int getNewLines(int index) {			if (index != -1) {				ASTNode curr= (ASTNode) fList.get(index);				int nodeType= curr.getNodeType();				ASTNode last= null;				int additionalLines= -1;				for (int i= 0; i < fList.size(); i++) {					ASTNode elem= (ASTNode) fList.get(i);					if (!isInserted(elem)) {						if (last != null) {							if (elem.getNodeType() == nodeType && last.getNodeType() == nodeType) {								int currLine= fTextBuffer.getLineOfOffset(elem.getStartPosition());								int lastLine= fTextBuffer.getLineOfOffset(last.getStartPosition() + last.getLength());								return currLine - lastLine - 1;							} else if (additionalLines == -1) {								int currLine= fTextBuffer.getLineOfOffset(elem.getStartPosition());								int lastLine= fTextBuffer.getLineOfOffset(last.getStartPosition() + last.getLength());								additionalLines= currLine - lastLine - 1;							}						}						last= elem;					}				}				if (additionalLines != -1) {					return additionalLines;				}			}			return 1;		}		