public static EditPoint GetCommentStartPoint(this CodeElement ce) { try { return(ce.GetSafeStartPoint().GetCommentStartPoint()); } catch (NotImplementedException) { //Catch random notimplementedException return(null); } }